function signup_user_insert in Signup 7
Implements hook_user_insert().
Create signups for new users who signed up via the user registration form.
Related topics
File
- ./
signup.module, line 688 - 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_user_insert(&$edit, $account, $category) {
if (!empty($edit['signup'])) {
foreach ($edit['signup'] as $nid => $value) {
if ($value) {
$signup_form = array();
$signup_form['nid'] = $nid;
$signup_form['uid'] = $account->uid;
signup_sign_up_user($signup_form, TRUE);
}
}
}
}