You are here

function weather_es_update_cities_js in Weather_es 6.3

AHAH for the cities

@author jmsirvent

1 string reference to 'weather_es_update_cities_js'
weather_es_menu in ./weather_es.module
hook_menu

File

./weather_es.module, line 740

Code

function weather_es_update_cities_js() {
  $form = weather_es_ahah_helper();
  $changed_elements = $form['combo']['ciudad'];

  // Prevent duplicate wrappers.
  unset($changed_elements['#prefix'], $changed_elements['#suffix']);

  // It must be this way, but we don't want to see posible errors...

  //$output = theme('status_messages') . drupal_render($changed_elements);
  $output = drupal_render($changed_elements);
  drupal_json(array(
    'status' => TRUE,
    'data' => $output,
  ));
}