function omega_tools_subtheme_process in Omega Tools 7.3
@todo
2 calls to omega_tools_subtheme_process()
- drush_omega_tools_omega_subtheme in includes/
omega_tools.drush.inc - Implements of drush_hook_COMMAND().
- omega_tools_subtheme_wizard_finish in includes/
omega_tools.wizard.inc - @todo
File
- ./
omega_tools.module, line 445
Code
function omega_tools_subtheme_process($subtheme) {
drupal_theme_rebuild();
system_rebuild_theme_data();
if ($subtheme->status) {
theme_enable(array(
$subtheme->machine_name,
));
if ($subtheme->default) {
variable_set('theme_default', $subtheme->machine_name);
drupal_set_message(t('%name is now the default theme.', array(
'%name' => $subtheme->name,
)));
}
}
else {
theme_disable(array(
$subtheme->machine_name,
));
}
}