You are here

function themekey_overlay_themekey_properties in ThemeKey 7.3

Same name and namespace in other branches
  1. 7.2 modules/themekey.overlay.inc \themekey_overlay_themekey_properties()

Implements hook_themekey_properties().

Provides additional properties for module ThemeKey:

  • overlay:mode

Return value

array of themekey properties and mapping functions

File

modules/themekey.overlay.inc, line 23
Provides some og attributes as ThemeKey properties.

Code

function themekey_overlay_themekey_properties() {

  // Attributes for properties
  $attributes = array();
  $attributes['overlay:mode'] = array(
    'description' => t("Overlay: Mode - The current overlay mode used to show the content. Note: If you add such a rule, the mode 'none' will not work anymore. That means that different modules won't be able to turn off overlay manually. That's not an issue for drupal core. See !link for details.", array(
      '!link' => l(t('function overlay_set_mode documentation'), 'https://api.drupal.org/api/drupal/modules!overlay!overlay.module/function/overlay_set_mode/7'),
    )),
    'validator' => 'themekey_validator_overlay_mode',
    'page cache' => THEMEKEY_PAGECACHE_UNSUPPORTED,
  );

  // Mapping functions
  $maps = array();
  $maps[] = array(
    'src' => 'system:dummy',
    'dst' => 'overlay:mode',
    'callback' => 'themekey_overlay_dummy2mode',
  );
  return array(
    'attributes' => $attributes,
    'maps' => $maps,
  );
}