You are here

function friendlist_activity_form_alter in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 modules/friendlist_activity/friendlist_activity.module \friendlist_activity_form_alter()

Implementation of hook_form_alter().

File

modules/friendlist_activity/friendlist_activity.module, line 72

Code

function friendlist_activity_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'heartbeat_activity_admin_settings') {
    $form['fl_fields'] = array(
      '#type' => 'fieldset',
      '#weight' => 0,
      '#title' => t('Friendlist settings'),
      '#collapsible' => TRUE,
      '#collapsed' => FALSE,
    );
    $form['fl_fields']['heartbeat_add_friends_to_personal'] = array(
      '#title' => t('Do you want to show activity by friendlist friends to the personal heartbeat?'),
      '#type' => 'checkbox',
      '#default_value' => variable_get('heartbeat_add_friends_to_personal', 1),
    );
  }
}