function themekey_dummy2time in ThemeKey 7
Same name and namespace in other branches
- 7.3 modules/themekey.system.inc \themekey_dummy2time()
- 7.2 modules/themekey.system.inc \themekey_dummy2time()
ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).
src: system:dummy dst: system:time
Parameters
$dummy: string containing current value of ThemeKey property system:dummy
Return value
current time as string formatted like "23:56:15"
1 string reference to 'themekey_dummy2time'
- themekey_system_themekey_properties in modules/
themekey.system.inc - Implements hook_themekey_properties().
File
- modules/
themekey.system.inc, line 516 - Provides some ThemeKey properties.
Code
function themekey_dummy2time($dummy) {
return format_date(time(), 'custom', 'H:i:s', variable_get('date_default_timezone', 0));
}