You are here

function themekey_overlay_dummy2mode in ThemeKey 7.3

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

ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).

src: system:dummy dst: overlay:mode

Parameters

$nid: a node id

Return value

string

1 string reference to 'themekey_overlay_dummy2mode'
themekey_overlay_themekey_properties in modules/themekey.overlay.inc
Implements hook_themekey_properties().

File

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

Code

function themekey_overlay_dummy2mode() {

  // hook_init() is called after hook_custom_theme()
  if (module_exists('locale')) {

    // overlay_init() LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX which is defined
    // in locale.inc that gets loaded by locale_init().
    include_once DRUPAL_ROOT . '/includes/locale.inc';
  }
  overlay_init();
  return overlay_get_mode();
}