function skinr_ui_overlay_enabled in Skinr 6.2
Check if overlay functionality is enabled.
1 call to skinr_ui_overlay_enabled()
- skinr_ui_skinr_skins_alter in ./
skinr_ui.module - Implementation of hook_skinr_alter().
File
- ./
skinr_ui.module, line 206
Code
function skinr_ui_overlay_enabled() {
static $warned = FALSE;
if (!module_exists('dialog') && !$warned) {
// Ensure that dialog module is enabled, else functionality will be crippled.
$message = 'The dialog module is now required by skinr to function properly. Please enable this module.';
drupal_set_message(t($message), 'error', FALSE);
watchdog('skinr', $message, array(), WATCHDOG_CRITICAL);
$warned = TRUE;
}
return module_exists('dialog');
}