You are here

function getlocations_element_map_checkbox in Get Locations 7

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_element_map_checkbox()
  2. 6 getlocations.module \getlocations_element_map_checkbox()
  3. 7.2 getlocations.module \getlocations_element_map_checkbox()

Function

Return value

Returns form element

31 calls to getlocations_element_map_checkbox()
getlocations_element_map_baselayers in ./getlocations.module
Function
getlocations_fields_display_settings_form in modules/getlocations_fields/getlocations_fields.module
display settings form for sharing
getlocations_fields_field_formatter_settings_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_formatter_settings_form(). Returns form elements for a formatter's settings.
getlocations_fields_field_settings_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_settings_form(). Add settings to a field settings form.
getlocations_fields_field_widget_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_widget_form(). Return the form for a single field widget.

... See full list

File

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

Code

function getlocations_element_map_checkbox($title, $default, $description = '') {
  $element = array(
    '#type' => 'checkbox',
    '#title' => $title,
    '#default_value' => $default,
    '#return_value' => 1,
  );
  if (!empty($description)) {
    $element['#description'] = $description;
  }
  return $element;
}