function _touch_icons_get_theme_settings_key in Touch Icons 7.2
Same name and namespace in other branches
- 6 touch_icons.module \_touch_icons_get_theme_settings_key()
- 7 touch_icons.module \_touch_icons_get_theme_settings_key()
helper function to get theme key for theme settings page.
if we don't receive $key parameter like system_theme_settings() we can get it from path, i.e. 'admin/appearance/settings/THEMENAME'
NOTE: this is NOT the active theme being used to display the page; it is the theme currently being configured on the theme settings form.
1 call to _touch_icons_get_theme_settings_key()
- touch_icons_form_system_theme_settings_alter in ./
touch_icons.admin.inc - Implement hook_form_FORM_ID_alter(). Implement hook_form_system_theme_settings_alter().
File
- ./
touch_icons.admin.inc, line 18 - Settings form and helper functions for touch icons module
Code
function _touch_icons_get_theme_settings_key() {
$key = arg(3);
if ($key == "global") {
// undesirable side-effect of admin_menu.module
$key = '';
}
return $key;
}