function panelizer_add_revision_info_form_submit in Panelizer 7.3
Same name and namespace in other branches
- 7.2 includes/common.inc \panelizer_add_revision_info_form_submit()
Form submission callback for panelizer_add_revision_info_form().
1 string reference to 'panelizer_add_revision_info_form_submit'
- panelizer_add_revision_info_form in includes/
common.inc - Mini form to add revision settings to a panelizer form so that we can properly handle revisioning.
File
- includes/
common.inc, line 228 - Contains common forms and routines that different object types use.
Code
function panelizer_add_revision_info_form_submit(&$form, &$form_state) {
$entity =& $form_state['display']->context['panelizer']->data;
if (!empty($form_state['use revisions'])) {
$entity->revision = $form_state['values']['revision'];
$entity->log = $form_state['values']['log'];
}
}