Commit ddad9812 authored by ccarigna's avatar ccarigna
Browse files

Attaching location-ajax.js appends to the array, does not overwrite it

parent 7fee89d1
......@@ -74,9 +74,7 @@ function uw_ct_event_form_uw_event_node_form_alter(&$form, &$form_state, $form_i
// there needs to be a central website to get location data from (that has the uw_ct_location feature enabled, populated with content)
// the location of that site is in a Drupal variable, uw_location_data_json_url, and defaults to the current site if it is not set
// (see the $settings array below)
$form['#attached']['js'] = array(
drupal_get_path('module', 'uw_ct_event') . '/js/location-ajax.js',
$form['#attached']['js'][] = drupal_get_path('module', 'uw_ct_event') . '/js/location-ajax.js';
// settings used in location-ajax.js
global $base_url;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment