function _panels_common_context_js in Panels 5.2
4 calls to _panels_common_context_js()
- panels_common_add_argument_form in includes/common.inc
- Add the argument table plus gadget plus javascript to the form.
- panels_common_add_context_form in includes/common.inc
- panels_common_add_relationship_form in includes/common.inc
- panels_common_add_required_context_form in includes/common.inc
File
- includes/common.inc, line 668
- Functions used by more than one panels client module.
Code
function _panels_common_context_js($name, $module, $type) {
return array(
$type . '-table' => array(
'remove' => "input.{$type}-remove",
'order' => "input#{$type}-order",
'up' => "input.{$type}-up",
'down' => "input.{$type}-down",
'configure' => "input.{$type}-settings",
'configure_path' => url("panels/common/ajax/edit/{$module}/{$type}/{$name}", NULL, NULL, TRUE),
'add' => "input#edit-buttons-{$type}-add",
'path' => url("panels/common/ajax/add/{$module}/{$type}/{$name}", NULL, NULL, TRUE),
'post' => array(
"#edit-buttons-{$type}-item",
"input#edit-buttons-{$type}-add",
),
'tr' => $type . '-row-',
'row_class' => "tr.{$type}-row",
'replace' => array(
'div#panels-relationships-table div.buttons' => 'relationships_table',
),
),
);
}