function delta_ui_layout_configure in Delta 7.3
@todo
1 string reference to 'delta_ui_layout_configure'
- delta_ui_menu in delta_ui/
delta_ui.module - Implements of hook_menu().
File
- delta_ui/
delta_ui.admin.inc, line 11 - Delta UI functionality
Code
function delta_ui_layout_configure($form, &$form_state, $delta) {
module_load_include('inc', 'system', 'system.admin');
$backup = delta_inject($delta->machine_name);
$form_state['delta'] = $delta->machine_name;
$form_state['build_info']['args'][0] = $delta->theme;
$form = system_theme_settings($form, $form_state, $delta->theme);
foreach (delta_get_plugins($delta->machine_name) as $plugin) {
$plugin
->form_alter($form, $form_state);
}
$form['delta'] = array(
'#type' => 'markup',
'#markup' => '<div class="messages warning">' . t('You are currently editing the Delta template %name. This template operates in %mode mode.', array(
'%name' => $delta->name,
'%mode' => $delta->mode == DELTA_PRESERVE ? t('Preserve') : t('Override'),
)) . '</div>',
'#weight' => -999,
);
$form['#validate'][] = 'delta_ui_layout_configure_validate';
$form['#submit'][] = 'delta_ui_layout_configure_submit';
$form['#attributes']['id'] = 'system-theme-settings';
delta_reset($delta->theme);
delta_inject($backup);
return $form;
}