You are here

function lingotek_filters_popup in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.bulk_grid.inc \lingotek_filters_popup()
  2. 7.4 lingotek.bulk_grid.inc \lingotek_filters_popup()
  3. 7.6 lingotek.bulk_grid.inc \lingotek_filters_popup()
1 string reference to 'lingotek_filters_popup'
lingotek_menu in ./lingotek.module
Implements hook_menu().

File

./lingotek.bulk_grid.inc, line 356
Bulk Grid form

Code

function lingotek_filters_popup() {
  ctools_include('node.pages', 'node', '');
  ctools_include('modal');
  ctools_include('ajax');
  $form = array();
  $form_state = array(
    'ajax' => TRUE,
  );
  $output = ctools_modal_form_wrapper('lingotek_filters_popup_form', $form_state);
  if (!empty($form_state['executed'])) {
    lingotek_grid_filter_submit($form, $form_state);

    // Create ajax command array, dismiss the modal window.
    $commands = array();
    $commands[] = ctools_modal_command_dismiss();
    $commands[] = ctools_ajax_command_reload();
    print ajax_render($commands);
    drupal_exit();
  }
  print ajax_render($output);
}