function themekey_ui_node_update in ThemeKey 7.2
Same name and namespace in other branches
- 7.3 themekey_ui.module \themekey_ui_node_update()
- 7 themekey_ui.module \themekey_ui_node_update()
Implementation of hook_node_update
Parameters
unknown_type $node:
File
- ./
themekey_ui.module, line 324 - ThemeKey UI is an extension for ThemeKey
Code
function themekey_ui_node_update($node) {
if (!empty($node->themekey_ui_theme)) {
db_merge('themekey_ui_node_theme')
->key(array(
'nid' => $node->nid,
'vid' => $node->vid,
))
->fields(array(
'nid' => $node->nid,
'vid' => $node->vid,
'theme' => $node->themekey_ui_theme,
))
->execute();
}
}