You are here

function hook_signup_suppress in Signup 6.2

Same name and namespace in other branches
  1. 6 signup.api.php \hook_signup_suppress()
  2. 7 signup.api.php \hook_signup_suppress()

Hook invoked to see if signup information should be printed for a node.

This hook is invoked whenever someone is viewing a signup-enabled node and allows modules to suppress any signup-related output. If any module's implementation of this hook returns TRUE, no signup information will be printed for that node.

Parameters

$node: The fully-loaded node object being viewed.

Return value

TRUE if you want to prevent signup information from being printed, FALSE or NULL if the information should be printed.

See also

_signup_needs_output()

_signup_menu_access()

signup_nodeapi()

1 invocation of hook_signup_suppress()
_signup_needs_output in ./signup.module
Helper function that determines if a given node should have any signup-related output.

File

./signup.api.php, line 219
This file documents the hooks invoked by the Signup module.

Code

function hook_signup_suppress($node) {
  if ($node->nid % 2) {
    drupal_set_message(t('Signup information suppressed for odd node ID %nid.', array(
      '%nid' => $node->nid,
    )));
    return TRUE;
  }
}