function config_pages_form_submit_panelize in Config Pages 7
Submit callback to panelize config page.
1 string reference to 'config_pages_form_submit_panelize'
- config_pages_edit_form in ./
config_pages.admin.inc - Form callback: create or edit a config_pages.
File
- ./
config_pages.admin.inc, line 452 - ConfigPages editing UI.
Code
function config_pages_form_submit_panelize(&$form, &$form_state) {
$config = $form['#config_pages'];
$view_mode = 'default';
if (empty($config->panelizer[$view_mode])) {
$config->panelizer[$view_mode] = _config_pages_get_internal_default_panelizer($config->type, $view_mode);
$config->panelizer[$view_mode]->pipeline = 'ipe';
$config->panelizer[$view_mode]->display_is_modified = TRUE;
$config->panelizer[$view_mode]->name = implode(':', array(
'config_pages',
$config->type,
'default',
));
entity_save('config_pages', $config);
drupal_set_message(t('Config Page Panelized'));
}
}