You are here

function la_admin in Location 7.3

Module's admin form.

1 string reference to 'la_admin'
la_menu in contrib/location_autofill/la.module
Implements hook_menu().

File

contrib/location_autofill/la.admin.inc, line 13
Location autofill routines.

Code

function la_admin($form, &$form_state) {
  $form = array();
  $count = la_info();
  if ($count !== NULL) {
    $form['submit'] = array(
      '#type' => 'submit',
      '#value' => t('Autofill locations'),
    );
    $form['submit_list'] = array(
      '#type' => 'submit',
      '#value' => t('Get empty locations'),
    );
  }
  return $form;
}