function _touch_icons_get_theme_settings_key in Touch Icons 7
Same name and namespace in other branches
- 6 touch_icons.module \_touch_icons_get_theme_settings_key()
 - 7.2 touch_icons.admin.inc \_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.module  - Implement hook_form_FORM_ID_alter(). Implement hook_form_system_theme_settings_alter().
 
File
- ./
touch_icons.module, line 27  - Adds a fieldset to theme settings form which allows site administrators to specify Apple Touch icons for Drupal websites. The Touch icon settings behave in a similar manner to the Site Logo and Favicon settings provided by Drupal core.
 
Code
function _touch_icons_get_theme_settings_key() {
  $key = arg(3);
  if ($key == "global") {
    // undesirable side-effect of admin_menu.module
    $key = '';
  }
  return $key;
}