function locationmap_block_configure in Location Map 8.2
Same name and namespace in other branches
- 7.2 locationmap.module \locationmap_block_configure()
- 7 locationmap.module \locationmap_block_configure()
Implements hook_block_configure().
File
- ./
locationmap.module, line 224
Code
function locationmap_block_configure($delta) {
$form = array();
switch ($delta) {
case 'image':
$form['info']['locationmap_block_type'] = array(
'#type' => 'radios',
'#title' => t('Map type'),
'#description' => t("Select the type of map you'd like this block to display."),
'#default_value' => variable_get('locationmap_block_type', 'image'),
'#options' => array(
'image' => t('Static image'),
'interactive' => t('Interactive map'),
),
);
$form['info']['locationmap_block_mapwidth'] = array(
'#type' => 'textfield',
'#title' => t('Block map width'),
'#description' => t('Provide the width of the block map in pixels'),
'#default_value' => variable_get('locationmap_block_mapwidth', '160'),
'#field_suffix' => 'px',
'#description' => NULL,
'#size' => 10,
);
$form['info']['locationmap_block_mapheight'] = array(
'#type' => 'textfield',
'#title' => t('Block map height'),
'#description' => t('Provide the height of the block map in pixels'),
'#default_value' => variable_get('locationmap_block_mapheight', '120'),
'#field_suffix' => 'px',
'#description' => NULL,
'#size' => 10,
);
$form['info']['locationmap_text_top'] = array(
'#type' => 'text_format',
'#title' => t('Additional text to show above the image'),
'#default_value' => variable_get('locationmap_block_text_top'),
'#format' => isset($edit['format']) ? $edit['format'] : NULL,
);
break;
}
return $form;
}