You are here

function _signup_needs_output in Signup 5.2

Same name and namespace in other branches
  1. 6.2 signup.module \_signup_needs_output()
  2. 6 signup.module \_signup_needs_output()
  3. 7 signup.module \_signup_needs_output()

Helper function that determines if a given node should have any signup-related output.

Parameters

$node A fully loaded node object.:

Return value

TRUE if this node should have signup output, FALSE if not.

See also

signup_nodeapi()

2 calls to _signup_needs_output()
signup_menu in ./signup.module
Implementation of hook_menu().
signup_nodeapi in ./signup.module
Implementation of hook_nodeapi().

File

./signup.module, line 1001
The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…

Code

function _signup_needs_output($node) {
  if (!$node->signup) {

    // Not signup enabled at all.
    return FALSE;
  }
  $suppress = module_invoke_all('signup_suppress', $node);
  if (in_array(TRUE, $suppress)) {

    // Someone doesn't want signup details printed.
    return FALSE;
  }
  return TRUE;
}