function improved_theme_settings_get_setting in Open Social 10.0.x
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.4 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.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.
Parameters
string $setting: The setting to retrieve.
string $themename: The theme to retrieve the setting from.
Return value
bool|string The value of the settings.
2 calls to improved_theme_settings_get_setting()
- hook_improved_theme_settings_add in modules/
custom/ improved_theme_settings/ improved_theme_settings.api.php - Allows modules to add additional CSS based on theme settings.
- 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 228 - 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((int) $themevar)) {
return FALSE;
}
return $themevar;
}