You are here

function oa_messages_oa_settings_form in Open Atrium Core 7.2

Implements hook_oa_settings_form().

Add plugin-specific configuration to main Open Atrium settings form

Parameters

$form_state:

return array - array of subforms render array:

File

modules/oa_messages/oa_messages.admin.inc, line 319
Provides forms and pages for administering oa_messages.

Code

function oa_messages_oa_settings_form(&$form_state) {
  $forms = array();
  $form = array();
  $form['oa_messages_notifications'] = array(
    '#type' => 'checkbox',
    '#title' => 'Enable notifications',
    '#description' => 'If off, no notifications will be sent.  If on, notifications are controlled by individual user settings.',
    '#default_value' => variable_get('oa_messages_notifications', TRUE),
  );
  $form['oa_messages_publish_notifications'] = array(
    '#type' => 'checkbox',
    '#title' => 'Enable notifications for Publishing content',
    '#description' => 'If off, no notifications will be sent for Publish status change of content with no other changes (affects the system only if Enable Notifications is checked).',
    '#default_value' => variable_get('oa_messages_publish_notifications', FALSE),
  );
  $form['oa_messages_unpublish_notifications'] = array(
    '#type' => 'checkbox',
    '#title' => 'Enable notifications for Un-publishing content',
    '#description' => 'If off, no notifications will be sent for Un-publish status change of content with no other changes (affects the system only if Enable Notifications is checked).',
    '#default_value' => variable_get('oa_messages_unpublish_notifications', FALSE),
  );
  $forms[] = array(
    'caption' => t('Notifications'),
    'form' => $form,
  );
  return $forms;
}