function scrollreveal_update_7001 in Scroll Reveal 7
Same name and namespace in other branches
- 7.2 scrollreveal.install \scrollreveal_update_7001()
Adds visibility options().
File
- ./
scrollreveal.install, line 65 - scrollreveal.install Installation and update functions for the ScrollReveal Module
Code
function scrollreveal_update_7001() {
$theme = variable_get('theme_default', NULL);
$settings = variable_get('scrollreveal_settings');
$update = FALSE;
if (!isset($settings['theme']['visibility'])) {
$settings['theme'] = array(
'visibility' => 1,
'themes' => array(
$theme => $theme,
),
);
$update = TRUE;
}
if (!isset($settings['theme']['visibility'])) {
$settings['pages'] = array(
'visibility' => 0,
'pages' => 'admin/*',
);
$update = TRUE;
}
if ($update) {
variable_set('scrollreveal_settings', $settings);
}
}