You are here

function signup_mark_attended_action in Signup 6.2

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

Action callback to mark a given signup that the user attended the node.

Parameters

$signup: Reference to a fully-loaded signup object to record attendance on.

Return value

Nothing: $signup object is modified by reference and the {signup_log} table is directly UPDATE'ed in the database.

File

./signup.module, line 908
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_mark_attended_action(&$signup) {
  db_query("UPDATE {signup_log} SET attended = %d WHERE sid = %d", TRUE, $signup->sid);
  $signup->attended = TRUE;
  watchdog('action', 'Marked signup @signup_id attended.', array(
    '@signup_id' => $signup->sid,
  ));
}