You are here

function getlocations_colorbox_settings in Get Locations 7

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

Function

Return value

Returns

8 calls to getlocations_colorbox_settings()
getlocations_init in ./getlocations.module
Implements hook_init().
getlocations_markerpicker_link in ./getlocations.module
Function
getlocations_settings_form in ./getlocations.admin.inc
Function to display the getlocations admin settings form
getlocations_tools_export_form in modules/getlocations_tools/getlocations_tools.module
theme_getlocations_plugin_style_map_options_form in ./getlocations.module
Returns HTML of the getlocations plugin_style_map_options form.

... See full list

File

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

Code

function getlocations_colorbox_settings() {
  $colorbox_defaults = array(
    'enable' => 0,
    'width' => 600,
    'height' => 600,
    'marker_enable' => 0,
    'marker_width' => 600,
    'marker_height' => 600,
  );
  $colorbox_settings = variable_get('getlocations_colorbox', $colorbox_defaults);
  $getlocations_colorbox = getlocations_adjust_vars($colorbox_defaults, $colorbox_settings);
  if (!module_exists('colorbox')) {
    $getlocations_colorbox['enable'] = 0;
    $getlocations_colorbox['marker_enable'] = 0;
  }
  return $getlocations_colorbox;
}