You are here

function location_taxonomy_term_form_submit in Location 7.5

Same name and namespace in other branches
  1. 7.3 contrib/location_taxonomy/location_taxonomy.module \location_taxonomy_term_form_submit()

Submit handler for the term add/edit form.

1 string reference to 'location_taxonomy_term_form_submit'
location_taxonomy_form_alter in contrib/location_taxonomy/location_taxonomy.module
Implements hook_form_alter().

File

contrib/location_taxonomy/location_taxonomy.module, line 85
Associate locations with taxonomy terms.

Code

function location_taxonomy_term_form_submit($form, &$form_state) {
  $settings = variable_get('location_taxonomy_' . $form_state['values']['vid'], FALSE);
  if ($settings && $settings['multiple']['max']) {
    location_save_locations($form_state['values']['locations'], array(
      'genid' => 'taxonomy:' . $form_state['values']['tid'],
    ));
  }
}