You are here

function commons_follow_form_alter in Drupal Commons 7.3

Implements hook_form_alter().

File

modules/commons/commons_follow/commons_follow.module, line 131

Code

function commons_follow_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id != 'views_exposed_form' || strpos($form['#id'], 'views-exposed-form-commons-bw') !== 0 || empty($form['following'])) {
    return;
  }
  $form['#info']['filter-flagged']['label'] = t('Limited to');
  $form['following']['#options'] = array(
    'All' => t('All content'),
    1 => t("Content you're following"),
    0 => t("Content you're not following"),
  );
}