You are here

function getlocations_controlpositions in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_controlpositions()

Function

Return value

Returns

2 calls to getlocations_controlpositions()
getlocations_fields_sv_control_form in modules/getlocations_fields/getlocations_fields.module
getlocations_map_display_options_form in ./getlocations.module
Function

File

./getlocations.module, line 6635
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_controlpositions($dd = TRUE) {
  if ($dd) {
    $controlpositions = array(
      '' => t('Default'),
      'tl' => t('Top Left'),
      'tc' => t('Top Center'),
      'tr' => t('Top Right'),
      'rt' => t('Right Top'),
      'rc' => t('Right Center'),
      'rb' => t('Right Bottom'),
      'br' => t('Bottom Right'),
      'bc' => t('Bottom Center'),
      'bl' => t('Bottom Left'),
      'lb' => t('Left Bottom'),
      'lc' => t('Left Center'),
      'lt' => t('Left Top'),
    );
  }
  else {
    $controlpositions = array(
      'tl',
      'tc',
      'tr',
      'rt',
      'rc',
      'rb',
      'br',
      'bc',
      'bl',
      'lb',
      'lc',
      'lt',
    );
  }
  return $controlpositions;
}