Implements hook_magic().
Related topics
File
-
advagg_mod/
advagg_mod.module, line 1496
Code
function advagg_mod_magic(array $magic_settings, $theme) {
// $magic_settings is READ ONLY.
$settings = array();
// If possible disable access and set default to false.
if (!isset($magic_settings['css']['magic_embedded_mqs']['#access'])) {
$settings['css']['magic_embedded_mqs']['#access'] = FALSE;
}
if (!isset($magic_settings['css']['magic_embedded_mqs']['#default_value'])) {
$settings['css']['magic_embedded_mqs']['#default_value'] = FALSE;
}
if (!isset($magic_settings['js']['magic_footer_js']['#access'])) {
$settings['js']['magic_footer_js']['#access'] = FALSE;
}
if (!isset($magic_settings['js']['magic_footer_js']['#default_value'])) {
$settings['js']['magic_footer_js']['#default_value'] = FALSE;
}
if (!isset($magic_settings['js']['magic_library_head']['#access'])) {
$settings['js']['magic_library_head']['#access'] = FALSE;
}
if (!isset($magic_settings['js']['magic_library_head']['#default_value'])) {
$settings['js']['magic_library_head']['#default_value'] = FALSE;
}
if (!isset($magic_settings['js']['magic_experimental_js']['#access'])) {
$settings['js']['magic_experimental_js']['#access'] = FALSE;
}
if (!isset($magic_settings['js']['magic_experimental_js']['#default_value'])) {
$settings['js']['magic_experimental_js']['#default_value'] = FALSE;
}
// Add in our own validate function so we can preprocess variables before
// they are saved.
$settings['#validate'] = array(
'advagg_mod_magic_form_validate',
);
// Must not contain anything from the $magic_settings array.
return $settings;
}