You are here

function notifications_ui_settings_form in Notifications 5

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

Site-wide settings form.

1 string reference to 'notifications_ui_settings_form'
notifications_ui_menu in notifications_ui/notifications_ui.module
Implementation of hook_menu

File

notifications_ui/notifications_ui.module, line 68
User Interface for subscriptions modules

Code

function notifications_ui_settings_form() {
  $form['notifications_ui_types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Enabled subscription types'),
    '#options' => notifications_subscription_types(NULL, 'title'),
    '#default_value' => variable_get('notifications_ui_types', array()),
    '#description' => t('Check the subscription types the UI module should show.'),
  );
  $form['notifications_link_teaser'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show subscribe link with teaser'),
    '#default_value' => variable_get('notifications_link_teaser', 1),
    '#description' => t('Uncheck to show links only in full node view. This will work only for content types that have subscription links enabled.'),
  );
  return system_settings_form($form);
}