function improved_theme_settings_get_setting in Open Social 8.4
Same name and namespace in other branches
- 8.9 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 8 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 8.2 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 8.3 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 8.5 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 8.6 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 8.7 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 8.8 modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 10.3.x modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 10.0.x modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 10.1.x modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
- 10.2.x modules/custom/improved_theme_settings/improved_theme_settings.module \improved_theme_settings_get_setting()
Function that returns a valid integer or FALSE.
1 call to improved_theme_settings_get_setting()
- improved_theme_settings_page_attachments in modules/
custom/ improved_theme_settings/ improved_theme_settings.module - Implements hook_page_attachments().
File
- modules/
custom/ improved_theme_settings/ improved_theme_settings.module, line 190 - Improved theme settings module file.
Code
function improved_theme_settings_get_setting($setting, $themename) {
// Fetch setting from the theme.
$themevar = Xss::filter(theme_get_setting($setting, $themename));
// In this case '' is something different than 0.
if ($themevar !== trim(intval($themevar))) {
return FALSE;
}
return $themevar;
}