1 layout.admin.inc | layout_title_settings_form_submit($form, &$form_state) |
Submit handler for layout_title_settings_form() to change title settings.
File
- core/
modules/ layout/ layout.admin.inc, line 1535 - Admin page callbacks for the Layout module.
Code
function layout_title_settings_form_submit($form, &$form_state) {
$layout = $form_state['layout'];
// Save title settings.
if (isset($form_state['values']['title_display'])) {
$layout->settings['title'] = $form_state['values']['title'];
$layout->settings['title_block'] = $form_state['values']['title_block'];
$layout->settings['title_display'] = $form_state['values']['title_display'];
}
// Set the part of the form to be rebuilt via ajax.
$form_state['ajax_update'] = array('title_display');
$layout->in_progress['section'] = 'title';
layout_set_layout_tempstore($layout);
}