You are here

function _anonymous_publishing_node_submit in Anonymous Publishing 5

Node API submit helper.

Parameters

$node: The node object.

1 call to _anonymous_publishing_node_submit()
anonymous_publishing_nodeapi in ./anonymous_publishing.module
Implementation of hook_node_api().

File

./anonymous_publishing.module, line 250
Installation file for the anonymous_publishing module.

Code

function _anonymous_publishing_node_submit(&$node) {
  global $user;
  if (!$node->nid && !$user->uid) {
    $node->status = 0;
  }
}