function lingotek_grid_customize in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.bulk_grid.inc \lingotek_grid_customize()
- 7.4 lingotek.bulk_grid.inc \lingotek_grid_customize()
- 7.5 lingotek.bulk_grid.inc \lingotek_grid_customize()
1 string reference to 'lingotek_grid_customize'
- lingotek_menu in ./
lingotek.module - Implements hook_menu().
File
- ./
lingotek.bulk_grid.inc, line 499
Code
function lingotek_grid_customize($entity_type) {
ctools_include('node.pages', 'node', '');
ctools_include('modal');
ctools_include('ajax');
$form_state = array(
'ajax' => TRUE,
'entity_type' => $entity_type,
);
$output = ctools_modal_form_wrapper('lingotek_grid_customize_form', $form_state);
if (!empty($form_state['executed'])) {
$f = array();
form_execute_handlers('submit', $f, $form_state);
$commands = array();
$commands[] = ctools_modal_command_dismiss();
$commands[] = ctools_ajax_command_reload();
print ajax_render($commands);
exit;
}
print ajax_render($output);
}