function locationmap_block_configure in Location Map 7
Same name and namespace in other branches
- 8.2 locationmap.module \locationmap_block_configure()
- 7.2 locationmap.module \locationmap_block_configure()
Implements hook_block_configure().
File
- ./
locationmap.module, line 344
Code
function locationmap_block_configure($delta) {
$form = array();
switch ($delta) {
case 'image':
$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;
}