You are here

function og_activity_form_alter in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 modules/og_activity/og_activity.module \og_activity_form_alter()

Implementation of hook_form_alter().

File

modules/og_activity/og_activity.module, line 9

Code

function og_activity_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'og_create_admin_confirm') {
    $form['#submit'][] = 'og_activity_create_admin_confirm';
  }
  if (in_array($form_id, array(
    'heartbeat_messages_edit',
    'heartbeat_messages_add',
  ))) {
    $form['perms']['#options'] += array(
      HEARTBEAT_OG_PUBLIC => t('Everyone if group is set to public'),
    );
  }
}