You are here

function themekey_views_getq2machine_name in ThemeKey 7.3

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

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

src: drupal:get_q dst: views:machine_name

Parameters

$get_q: a drupal path

Return value

string or NULL if no value could be mapped

1 string reference to 'themekey_views_getq2machine_name'
themekey_views_themekey_properties in modules/themekey.views.inc
Implements hook_themekey_properties().

File

modules/themekey.views.inc, line 103
Provides some views properties

Code

function themekey_views_getq2machine_name($get_q) {
  return themekey_views_get_simple_property_by_getq($get_q, 'name');
}