function panels_common_ajax in Panels 5.2
Incoming menu function for ajax calls. This routes to the proper 'module' -- we really only need this because common.inc relies on panels.module for its menu hook, and this way the code stays together.
1 string reference to 'panels_common_ajax'
- panels_menu in ./
panels.module - Implementation of hook_menu
File
- includes/
common.inc, line 1453 - Functions used by more than one panels client module.
Code
function panels_common_ajax($module = NULL, $data = NULL, $info = NULL, $info2 = NULL) {
switch ($module) {
case 'edit':
return panels_common_ajax_context_item_edit($data, $info, $info2);
case 'add':
return panels_common_ajax_context_item_add($data, $info, $info2);
case 'panel_settings':
return panels_common_panel_settings_ajax($data, $info);
default:
panels_ajax_render(t('An error occurred'), t('Error'));
}
}