function getlocations_blocks_contents in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_blocks/getlocations_blocks.module \getlocations_blocks_contents()
A module-defined block content function.
1 call to getlocations_blocks_contents()
- getlocations_blocks_block_view in modules/
getlocations_blocks/ getlocations_blocks.module - Implements hook_block_view().
File
- modules/
getlocations_blocks/ getlocations_blocks.module, line 402 - getlocations_blocks.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_blocks_contents($which_block) {
switch ($which_block) {
case 'getlocations_blocks_city':
$form = drupal_get_form('getlocations_blocks_city_form');
$output = drupal_render($form);
return $output;
case 'getlocations_blocks_province':
$form = drupal_get_form('getlocations_blocks_province_form');
$output = drupal_render($form);
return $output;
case 'getlocations_blocks_postalcode':
$form = drupal_get_form('getlocations_blocks_postalcode_form');
$output = drupal_render($form);
return $output;
case 'getlocations_blocks_country':
$form = drupal_get_form('getlocations_blocks_country_form');
$output = drupal_render($form);
return $output;
}
}