Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Unchecking this box in Signup Admin and the Signup boxes still show up on the user registration page.
Really breaks my site as only paid Members should see Signup Activities, not Anonymous users who aren't even Members yet. This bug provides links to Member only content.
The fix on this issue https://www.drupal.org/node/1428670 doesn't work
Comments
Comment #2
jeremymears CreditAttribution: jeremymears commentedI hacked together a fix, if you comment out the following code in signup.module (sites/all/modules/signup. line 707-737) the signups don't appear on the user registration page:
// Get a list of nodes that should appear on the user registration form.
$query = db_select('node', 'n');
$alias = $query->join('signup', 's', 'n.nid = s.nid');
$query->fields('n', array('nid'));
$query
->condition("n.status", 1)
->condition("{$alias}.user_reg_form", 1)
->condition("{$alias}.status", 1);
$query->addTag('node_access');
$nids = $query->execute()->fetchCol();
// Allow other modules to alter the list of nids.
drupal_alter('signup_user_reg_nids', $nids);
// If there is at least one node, add the Signup fieldset.
if (!empty($nids)) {
$form['signup'] = array(
'#type' => 'fieldset',
'#title' => t('Event signup'),
'#tree' => TRUE,
'#description' => t('You will be automatically signed up once your account is created.'),
);
// Each node gets a checkbox.
foreach ($nids as $nid) {
$node = node_load($nid);
$form['signup'][$nid] = array(
'#type' => 'checkbox',
'#title' => theme('signup_node_title', array('node' => $node)),
'#default_value' => 0,
);
}
}