You are here

function getlocations_mapquest_display_options_fieldsets in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_mapquest/getlocations_mapquest.module \getlocations_mapquest_display_options_fieldsets()
2 calls to getlocations_mapquest_display_options_fieldsets()
theme_getlocations_mapquest_display_options_form in modules/getlocations_mapquest/getlocations_mapquest.module
theme_getlocations_mapquest_plugin_style_options_form in modules/getlocations_mapquest/getlocations_mapquest.module
Function

File

modules/getlocations_mapquest/getlocations_mapquest.module, line 2221
getlocations_mapquest.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_mapquest_display_options_fieldsets($form) {
  if (isset($form['zoomControl']) && $form['zoomControl']['#type'] !== 'value') {
    $form['zoomControl']['#prefix'] = '<fieldset class="collapsible getlocations_fieldset form-wrapper"><legend><span class="fieldset-legend">' . t('Zoom Control') . '</span></legend><div class="fieldset-wrapper">';
    $tsuf = $form['zoomcontrolposition']['#suffix'];
    $form['zoomcontrolposition']['#suffix'] = $tsuf . '</div></fieldset>';
  }
  if (isset($form['layerControl']) && $form['layerControl']['#type'] !== 'value') {
    $form['layerControl']['#prefix'] = '<fieldset class="collapsible getlocations_fieldset form-wrapper"><legend><span class="fieldset-legend">' . t('Layer Control') . '</span></legend><div class="fieldset-wrapper">';
    $tsuf = $form['layercontrolposition']['#suffix'];
    $form['layercontrolposition']['#suffix'] = $tsuf . '</div></fieldset>';
  }
  if (isset($form['overview']) && $form['overview']['#type'] !== 'value') {
    $form['overview']['#prefix'] = '<fieldset class="collapsible getlocations_fieldset form-wrapper"><legend><span class="fieldset-legend">' . t('Overview') . '</span></legend><div class="fieldset-wrapper">';
    $tsuf = $form['overview_opened']['#suffix'];
    $form['overview_opened']['#suffix'] = $tsuf . '</div></fieldset>';
  }
  if (isset($form['drawingControl']) && $form['drawingControl']['#type'] !== 'value') {
    $form['drawingControl']['#prefix'] = '<fieldset class="collapsible getlocations_fieldset form-wrapper"><legend><span class="fieldset-legend">' . t('Drawing Control') . '</span></legend><div class="fieldset-wrapper">';
    $tsuf = $form['drawingcontrolposition']['#suffix'];
    $form['drawingcontrolposition']['#suffix'] = $tsuf . '</div></fieldset>';
  }
  if (isset($form['trafficControl']) && $form['trafficControl']['#type'] !== 'value') {
    $form['trafficControl']['#prefix'] = '<fieldset class="collapsible getlocations_fieldset form-wrapper"><legend><span class="fieldset-legend">' . t('Traffic Control') . '</span></legend><div class="fieldset-wrapper">';
    $tsuf = $form['trafficcontrolposition']['#suffix'];
    $form['trafficcontrolposition']['#suffix'] = $tsuf . '</div></fieldset>';
  }
  if (isset($form['geolocationControl']) && $form['geolocationControl']['#type'] !== 'value') {
    $form['geolocationControl']['#prefix'] = '<fieldset class="collapsible getlocations_fieldset form-wrapper"><legend><span class="fieldset-legend">' . t('Geolocation Control') . '</span></legend><div class="fieldset-wrapper">';
    $tsuf = $form['geolocationcontrolposition']['#suffix'];
    $form['geolocationcontrolposition']['#suffix'] = $tsuf . '</div></fieldset>';
  }
  return $form;
}