function amazon_component_block_configure in Amazon Product Advertisement API 7.2
Implements hook_block_configure.
File
- amazon_component/
amazon_component.module, line 58
Code
function amazon_component_block_configure($delta) {
switch ($delta) {
case 'amazon_gallery':
$form = array();
$form['amazon_store_search_block_keywords_width'] = array(
'#type' => 'textfield',
'#title' => t('Maximum Amount of Gallery Images'),
'#size' => 5,
'#default_value' => variable_get("amazon_component['gallery']", 5),
);
return $form;
case 'amazon_component_cart':
$form = array();
$form['amazon_component_cart_style'] = array(
'#type' => 'textfield',
'#title' => t('Style'),
'#size' => 5,
'#default_value' => variable_get("amazon_component['cart']", ''),
);
return $form;
case 'amazon_component_reviews':
$form = array();
$form['amazon_component_reviews_style'] = array(
'#type' => 'textfield',
'#title' => t('Style'),
'#size' => 15,
'#default_value' => variable_get("amazon_component['reviews_style']", ''),
);
return $form;
}
}