function hook_signup_close in Signup 6
Same name and namespace in other branches
- 6.2 signup.api.php \hook_signup_close()
- 7 signup.api.php \hook_signup_close()
Hook invoked whenever a node is closed for signups.
Signups are closed in 3 main cases: 1) it is a time-based node and the close-in-advance time has been reached (auto-close via cron); 2) the node has a signup limit and the limit is reached; 3) a signup administrator manually closes signups.
Parameters
$node: Fully-loaded node object that is now closed for signups.
Return value
Ignored.
See also
2 invocations of hook_signup_close()
- signup_close_signup in ./
signup.module - Callback function for closing signups
- _signup_cron_autoclose in includes/
cron.inc - Helper function that handles auto-closing time-based nodes during cron.
File
- ./
signup.api.php, line 142 - This file documents the hooks invoked by the Signup module.
Code
function hook_signup_close($node) {
drupal_set_message(t('Duplicate message: signups are now closed on %title.', array(
'%title' => $node->title,
)));
}