You are here

function bean_usage_settings in Bean (for Drupal 7) 7

1 string reference to 'bean_usage_settings'
bean_usage_menu in bean_usage/bean_usage.module
Implements hook_menu()

File

bean_usage/includes/bean_usage.forms.inc, line 2

Code

function bean_usage_settings() {
  $form = array();
  $form['bean_usage_results'] = array(
    '#type' => 'fieldset',
    '#title' => t('Results per page'),
    '#weight' => 0,
    '#collapsible' => FALSE,
  );
  $form['bean_usage_results']['bean_usage_results_per_page'] = array(
    '#title' => t('Results per page'),
    '#description' => t('How many results display per page on the bean usage page'),
    '#type' => 'select',
    '#options' => array(
      '5' => 5,
      '10' => 10,
      '15' => 15,
      '20' => 20,
      '25' => 25,
      '30' => 30,
      '35' => 35,
      '40' => 40,
      '45' => 45,
      '50' => 50,
    ),
    '#default_value' => variable_get('bean_usage_results_per_page', 30),
  );
  return system_settings_form($form);
}