function _touch_icons_get_theme_settings_key in Touch Icons 6
Same name and namespace in other branches
- 7.2 touch_icons.admin.inc \_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/build/themes/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.
3 calls to _touch_icons_get_theme_settings_key()
- touch_icons_form_system_theme_settings_alter in ./
touch_icons.module  - Implementation of hook_form_FORM_ID_alter(). Implementation of hook_form_system_theme_settings_alter().
 - _touch_icons_plain_upload_validate in ./
touch_icons.module  - Validate custom plain touch icon upload.
 - _touch_icons_precomp_upload_validate in ./
touch_icons.module  - Validate custom precomposed touch icon upload.
 
File
- ./
touch_icons.module, line 31  - 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(4);
  if ($key == "global") {
    // undesirable side-effect of admin_menu.module
    $key = '';
  }
  return $key;
}