function panels_common_edit_argument_form_submit in Panels 5.2
Same name and namespace in other branches
- 6.2 includes/common-context.inc \panels_common_edit_argument_form_submit()
Updates an argument edited/added via ajax
File
- includes/
common.inc, line 1420 - Functions used by more than one panels client module.
Code
function panels_common_edit_argument_form_submit($form_id, $form_values) {
$argument = $form_values['arg'];
$position = $form_values['position'];
if (isset($argument['settings form submit']) && function_exists($argument['settings form submit'])) {
$argument['settings form submit']($form_values['argument']['argument_settings']);
}
// Because we're being all ajaxy, our caller will save this for us.
return $form_values['argument'];
}