function asin_widget_locale_product_group in Amazon Product Advertisement API 7
Same name and namespace in other branches
- 7.2 asin/asin.module \asin_widget_locale_product_group()
AJAX callback for widget settings form.
1 string reference to 'asin_widget_locale_product_group'
- asin_field_widget_settings_form in asin/
asin.module - Implements hook_field_widget_settings_form().
File
- asin/
asin.module, line 225 - Defines a field type for referencing an Amazon product.
Code
function asin_widget_locale_product_group($form, &$form_state) {
$cache = amazon_data_cache();
$form['instance']['widget']['settings']['widget_settings']['productgroup']['#options'] = $cache['locales'][$form_state['values']['instance']['widget']['settings']['widget_settings']['locale']]['search_indexes'];
return render($form['instance']['widget']['settings']['widget_settings']);
}