You are here

function signup_open_signup in Signup 5

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

Callback function for reopening signups

2 calls to signup_open_signup()
signup_open_signups_form_submit in ./signup.module
signup_open_signup_admin in ./signup.module
Callback function for opening signups via a link in the admin tables

File

./signup.module, line 869

Code

function signup_open_signup($nid, $cron = 'no') {
  db_query("UPDATE {signup} SET completed = 0 WHERE nid = %d", $nid);
  if ($cron == 'no') {
    $node = node_load(array(
      'nid' => $nid,
    ));
    foreach (module_implements('signup_open') as $module) {
      $function = $module . '_signup_open';
      $function($node);
    }
    watchdog('signup', t('Signups reopened for %title.', array(
      '%title' => $node->title,
    )), WATCHDOG_NOTICE, l(t('view'), 'node/' . $nid));
  }
}