You are here

function themekey_overlay_themekey_properties in ThemeKey 7.2

Same name and namespace in other branches
  1. 7.3 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 overlay mode current content is shown'),
    '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,
  );
}