mpac.admin.inc 510 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Administrative functions and forms for mpac.module.
  5. */
  6. function mpac_settings_form() {
  7. $form = array();
  8. $form['mpac_max_items'] = array(
  9. '#type' => 'select',
  10. '#title' => t('Maximum number of items'),
  11. '#description' => t('Select the maximum number of items in an autocomplete popup provided by mpac.'),
  12. '#default_value' => variable_get('mpac_max_items', 20),
  13. '#options' => drupal_map_assoc(array(10, 20, 50, 100)),
  14. );
  15. return system_settings_form($form);
  16. }