_system_themes_access
modules/system/system.module, строка 523
- Версии
- 6
_system_themes_access($theme)
Menu item access callback - only admin or enabled themes can be accessed.
Код
<?php
function _system_themes_access($theme) {
return user_access('administer site configuration') && ($theme->status || $theme->name == variable_get('admin_theme', '0'));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии