1 layout.admin.inc | layout_settings_form_condition_add($form, &$form_state) |
Submit handler for layout_settings_form() that lets the user add a condition.
File
- core/
modules/ layout/ layout.admin.inc, line 918 - Admin page callbacks for the Layout module.
Code
function layout_settings_form_condition_add($form, &$form_state) {
// Remove destination flags when adding conditions, otherwise the user will
// be taken to the destination instead of adding a condition. This only
// affects non-JS behavior.
if (isset($_GET['destination'])) {
unset($_GET['destination']);
}
$form_state['redirect'] = 'admin/structure/layouts/manage/' . $form_state['layout']->name . '/condition/add';
}