function panelizer_add_revision_info_form_submit in Panelizer 7.2
Same name and namespace in other branches
- 7.3 includes/common.inc \panelizer_add_revision_info_form_submit()
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 180 - Contains common forms and routines that different object types use.
Code
function panelizer_add_revision_info_form_submit(&$form, &$form_state) {
$entity = $form_state['entity'];
if (!empty($form_state['use revisions'])) {
$entity->revision = $form_state['values']['revision'];
$entity->log = $form_state['values']['log'];
}
}