function _csm_variable_set in Custom Submit Messages 6
Same name and namespace in other branches
- 7 csm.module \_csm_variable_set()
Custom variable_set() function that ensures the correct $node is set in the variable table
1 call to _csm_variable_set()
- csm_nodeapi in ./
csm.module - Implements hook_nodeapi().
File
- ./
csm.module, line 237 - The main module file for Custom Submit Messages.
Code
function _csm_variable_set($name, $value) {
if (module_exists('nodecomment')) {
if (variable_get($name, 'notset') !== 'notset') {
// The variable has already been set so there's not need to set it again
return;
}
}
variable_set($name, $value);
return;
}