You are here

function signup_content_extra_fields in Signup 6

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

Implementation of hook_content_extra_fields().

File

./signup.module, line 1055
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_extra_fields($type_name) {
  $extra = array();
  if (variable_get('signup_node_default_state_' . $type_name, 'disabled') != 'disabled') {
    if (variable_get('signup_form_location', 'node') == 'node') {
      $extra['signup_node_info'] = array(
        'label' => t('Signup information'),
        'description' => t('Signup form or current signup information.'),
        'weight' => 10,
      );
    }
    if (variable_get('signup_display_signup_user_list', 'embed-view') == 'embed-view') {
      $extra['signup_node_list'] = array(
        'label' => t('Signup user list'),
        'description' => t('List of users currently signed up.'),
        'weight' => 11,
      );
    }
  }
  return $extra;
}