function themekey_node_timestamp2datetime in ThemeKey 6.4
Same name and namespace in other branches
- 6.2 modules/themekey.node.inc \themekey_node_timestamp2datetime()
- 6.3 modules/themekey.node.inc \themekey_node_timestamp2datetime()
- 7.3 modules/themekey.node.inc \themekey_node_timestamp2datetime()
- 7 modules/themekey.node.inc \themekey_node_timestamp2datetime()
- 7.2 modules/themekey.node.inc \themekey_node_timestamp2datetime()
ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).
src: any timestamp dst: time formatted
Parameters
$timestamp: a unix timestamp
Return value
string or NULL if no value could be mapped
1 string reference to 'themekey_node_timestamp2datetime'
- themekey_node_themekey_properties in modules/
themekey.node.inc - Implements hook_themekey_properties().
File
- modules/
themekey.node.inc, line 402 - Provides some node attributes as ThemeKey properties.
Code
function themekey_node_timestamp2datetime($timestamp) {
return date('Y-m-d H:i:s', $timestamp);
}