You are here

function mostpopular_intervals_admin_form_add in Drupal Most Popular 7

1 string reference to 'mostpopular_intervals_admin_form_add'
mostpopular_intervals_admin_form in ./mostpopular.intervals.inc

File

./mostpopular.intervals.inc, line 115
Provides an admin GUI for configuring intervals.

Code

function mostpopular_intervals_admin_form_add($form, &$form_state) {
  if (!empty($form_state['triggering_element']['#bid'])) {
    $bid = $form_state['triggering_element']['#bid'];
    $form_state['intervals'][$bid][] = (object) array(
      'bid' => $bid,
      'title' => '',
      'string' => '',
    );
  }
  $form_state['rebuild'] = TRUE;
}