You are here

function _modr8_build_values in modr8 7

Build the values array needed for so many internal functions.

Parameters

$node: The node in the current context.

$note: An optional note to be used in emails being sent out.

3 calls to _modr8_build_values()
modr8_approve_content in ./modr8.module
Public API function to approve the given node.
modr8_delete_content in ./modr8.module
Public API function to delete the given node.
modr8_form_submit in ./modr8_admin.inc
Form submit handler, which approves or deletes the node.

File

./modr8.module, line 490
Easy dedicated content moderation

Code

function _modr8_build_values($node, $note = NULL) {
  if (!isset($node->nid)) {
    return;
  }
  return array(
    'note' => $note,
    'author_uid' => $node->uid,
    'log_link' => modr8_get_log_link($node),
    'title' => check_plain($node->title),
    'type' => node_type_get_name($node),
    'preview' => modr8_get_node_teaser($node),
  );
}