function themekey_example_dummy2number_one in ThemeKey 7.2
Same name and namespace in other branches
- 7.3 themekey_example/themekey_example_mappers.inc \themekey_example_dummy2number_one()
- 7 themekey_example/themekey_example_mappers.inc \themekey_example_dummy2number_one()
ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).
src: system:dummy dst: example:number_one
Parameters
$dummy: string containing current value of ThemeKey property system:dummy
Return value
string "1"
2 string references to 'themekey_example_dummy2number_one'
- hook_themekey_properties in docs/
themekey.api.php - By Implementing hook_themekey_properties() it's possible to add new properties to ThemeKey.
- themekey_example_themekey_properties in themekey_example/
themekey_example.module - Implements hook_themekey_properties().
File
- themekey_example/
themekey_example_mappers.inc, line 24 - Mapping functions of ThemeKey Example.
Code
function themekey_example_dummy2number_one($dummy) {
return "1";
}