system_admin_theme_submit
modules/system/system.module, строка 450
- Версии
- 5
system_admin_theme_submit(
$form_id,$form_values)- 6
system_admin_theme_submit($form, &$form_state)
Код
<?php
function system_admin_theme_submit($form_id, $form_values) {
// If we're changing themes, make sure the theme has its blocks initialized.
if ($form_values['admin_theme'] != variable_get('admin_theme', '0')) {
$result = db_query("SELECT status FROM {blocks} WHERE theme = '%s'", $form_values['admin_theme']);
if (!db_num_rows($result)) {
system_initialize_theme_blocks($form_values['admin_theme']);
}
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии