function page_theme_update_7001 in Page Theme 7
Same name and namespace in other branches
- 7.2 page_theme.install \page_theme_update_7001()
Check if all defined themes are available otherwise display a notice.
File
- ./
page_theme.install, line 144 - Install, update and uninstall functions for the page_theme module.
Code
function page_theme_update_7001() {
$themes = page_theme_get_themes();
$result = db_query('SELECT theme FROM {page_theme}');
foreach ($result as $page_theme) {
if (!isset($themes[$page_theme->theme])) {
return t('Not all defined themes are available, please check your configuration.');
}
}
}