diff -Naur ../import_aws.orig/aws.info ./aws.info --- ../import_aws.orig/aws.info 2008-08-23 05:06:42.000000000 -0700 +++ ./aws.info 2008-09-11 10:28:36.000000000 -0700 @@ -1,5 +1,6 @@ name=AWS Import description=Amazon Web Services Product Import Module +dependencies = jquery_update ; Information added by drupal.org packaging script on 2008-08-23 version = "5.x-0.x-dev" diff -Naur ../import_aws.orig/aws.install ./aws.install --- ../import_aws.orig/aws.install 2008-08-22 17:31:06.000000000 -0700 +++ ./aws.install 2008-09-11 10:28:36.000000000 -0700 @@ -40,10 +40,15 @@ )"); require_once('aws.module'); + variable_set('aws_master_index_url', 'http://www.workhabit.com/sites/default/files/aws/master/aws_search_params.xml'); _aws_build_search_indices(); - + return $queries; } +function aws_update_1() { + _aws_build_search_indices(); + variable_set('aws_master_index_url', 'http://www.workhabit.com/sites/default/files/aws/master/aws_search_params.xml'); +} ?> diff -Naur ../import_aws.orig/aws.module ./aws.module --- ../import_aws.orig/aws.module 2008-08-21 18:29:07.000000000 -0700 +++ ./aws.module 2008-09-11 10:30:53.000000000 -0700 @@ -599,33 +599,29 @@ return 'admin/settings/aws/import'; } - function _aws_add_hidden(&$form, &$form_values, $key) { $form[$key] = array('#type' => 'hidden', '#value' => $form_values[$key]); } - - function aws_search_index_import() { return _aws_build_search_indices(TRUE); } - function _aws_build_search_indices($show_messages = FALSE) { $master_index = variable_get('aws_master_index_url', ''); if (!$master_index) { - $master_index = 'http://www.workhabit.org/files/aws/master/aws_search_params.xml'; - variable_set('aws_master_index_url', $master_index); + $master_index = 'http://www.workhabit.com/sites/default/files/aws/master/aws_search_params.xml'; } $msg = 'Fetching search param feed from ' . $master_index; if ($show_messages) { drupal_set_message($msg); } watchdog('info', $msg); - - $response = drupal_http_request($master_index); + + $response = drupal_http_request($master_index); $sxmldoc = simplexml_load_string($response->data); + $results = array(); foreach ($sxmldoc->index as $index) { _aws_process_index($index, $results);