You are here

function globallink_file_entity_dashboard in GlobalLink Connect for Drupal 7.7

1 string reference to 'globallink_file_entity_dashboard'
globallink_file_entity_menu in globallink_file_entity/globallink_file_entity.module
Implements hook_menu().

File

globallink_file_entity/globallink_file_entity_send.inc, line 3

Code

function globallink_file_entity_dashboard($type) {
  $default_date = format_date(REQUEST_TIME + 7 * 24 * 60 * 60, 'custom', 'm/d/Y');
  drupal_add_library('system', 'ui.datepicker');
  drupal_add_js('jQuery(function() {
    jQuery(document).ajaxComplete(function() {
      jQuery(".pickadate1").datepicker({
        dateFormat: "mm/dd/yy",
        defaultDate: "' . $default_date . '",
        minDate: 0
      });
    });
  });', array(
    'group' => CSS_THEME,
    'type' => 'inline',
    'scope' => 'header',
    'weight' => 80,
  ));
  $_SESSION['globallink_selected_type'] = $type;
  $array = array();
  $array[] = drupal_get_form('globallink_file_entity_dashboard_filter_form');
  $array[] = drupal_get_form('globallink_file_entity_dashboard_pager_form');
  $array[] = drupal_get_form('globallink_file_entity_dashboard_form');
  return $array;
}