You are here

function _csm_variable_set in Custom Submit Messages 7

Same name and namespace in other branches
  1. 6 csm.module \_csm_variable_set()
2 calls to _csm_variable_set()
csm_node_prepare in ./csm.module
Implements hook_node_prepare().
_csm_node_ops in ./csm.module
Helper function for the various csm_node_op() functions.

File

./csm.module, line 571
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;
}