function magic_form_system_theme_settings_alter in Magic 7.2
Same name and namespace in other branches
- 7 magic.module \magic_form_system_theme_settings_alter()
Implements hook_form_alter().
File
- ./
magic.module, line 150 - Keep Frontend DRY; sprinkle it with MAGIC!
Code
function magic_form_system_theme_settings_alter(&$form, &$form_state) {
// Are we the global form? We do NOT want to touch that craziness.
if (empty($form_state['build_info']['args'][0])) {
return;
}
module_load_include('inc', 'magic', 'includes/magic.settings');
$form_state['build_info']['files'][] = drupal_get_path('module', 'magic') . '/includes/magic.settings.inc';
magic_form_system_theme_settings($form, $form_state, $form_state['build_info']['args'][0]);
// Do we also have the magic_dev module enabled? Let's add that too...
if (module_exists('magic_dev')) {
magic_dev_form_system_theme_settings($form, $form_state, $form_state['build_info']['args'][0]);
}
}