You are here

function notifications_content_settings_form in Notifications 5

Same name and namespace in other branches
  1. 6.4 notifications_content/notifications_content.pages.inc \notifications_content_settings_form()
  2. 6 notifications_content/notifications_content.pages.inc \notifications_content_settings_form()
  3. 6.2 notifications_content/notifications_content.pages.inc \notifications_content_settings_form()
  4. 6.3 notifications_content/notifications_content.pages.inc \notifications_content_settings_form()
  5. 7 notifications_content/notifications_content.admin.inc \notifications_content_settings_form()

Admin settings form

3 string references to 'notifications_content_settings_form'
notifications_autosubscribe_form_alter in notifications_autosubscribe/notifications_autosubscribe.module
Implementation of hook_form_alter()
notifications_content_menu in notifications_content/notifications_content.module
Implementation of hook_menu_()
notifications_tags_form_alter in notifications_tags/notifications_tags.module
Implementation of hook_form_alter().

File

notifications_content/notifications_content.module, line 92
Subscriptions to content events

Code

function notifications_content_settings_form() {

  // Allowed content types settings
  $form['content'] = array(
    '#type' => 'fieldset',
    '#title' => t('Content type subscriptions'),
    '#weight' => -10,
    '#collapsible' => TRUE,
  );
  $form['content']['notifications_content_types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Allowed content types'),
    '#default_value' => notifications_content_types('type'),
    '#options' => node_get_types('names'),
    '#description' => t('Select content types which should be <em>allowed</em> for subscriptions to content type.'),
    '#multiple' => TRUE,
  );
  return system_settings_form($form);
}