You are here

function signup_content_types in Signup 7

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

Returns a list of content types that have signups enabled

4 calls to signup_content_types()
signup_admin_form_query in includes/admin.signup_administration.inc
The database query to get the needed information of nodes with signups.
signup_content_type_fields in includes/date.inc
Returns a list of all cck fields that have been set for use in signups
_signup_cron_autoclose in includes/cron.inc
Helper function that handles auto-closing time-based nodes during cron.
_signup_cron_send_reminders in includes/cron.inc
Helper function that sends cron-based reminder e-mails.

File

./signup.module, line 1280
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_content_types() {
  $signup_content_types = array();
  foreach (node_type_get_names() as $content_type => $content_name) {
    if (variable_get('signup_node_default_state_' . $content_type, 'disabled') != 'disabled') {
      $signup_content_types[] = $content_type;
    }
  }
  return $signup_content_types;
}