You are here

function getlocations_markerpicker_link in Get Locations 7

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

Function

Return value

Returns

7 calls to getlocations_markerpicker_link()
theme_getlocations_fields_field_settings_form in modules/getlocations_fields/getlocations_fields.module
theme_getlocations_fields_field_widget_form in modules/getlocations_fields/getlocations_fields.module
The input form
theme_getlocations_gps_settings_form in modules/getlocations_gps/getlocations_gps.module
theme_getlocations_plugin_style_map_options_form in ./getlocations.module
Returns HTML of the getlocations plugin_style_map_options form.
theme_getlocations_search_block_settings_form in modules/getlocations_search/getlocations_search.module
Themes getlocations_search_block settings form

... See full list

File

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

Code

function getlocations_markerpicker_link($id, $cat, $infoimg = '') {
  if (module_exists('colorbox')) {
    $getlocations_colorbox = getlocations_colorbox_settings();
    if ($getlocations_colorbox['marker_enable']) {
      $boxwidth = $getlocations_colorbox['marker_width'];
      $boxheight = $getlocations_colorbox['marker_height'];
      if (empty($infoimg)) {
        $infoimg = '<img class="getlocations_infoimg" src="' . base_path() . GETLOCATIONS_PATH . '/images/info.png' . '" title="' . t('Click here to select an icon from a colorbox') . '" >';
      }
      $link = l($infoimg, 'getlocations/markerinfo', array(
        'attributes' => array(
          'class' => 'colorbox-load',
        ),
        'html' => TRUE,
        'query' => array(
          'width' => $boxwidth,
          'height' => $boxheight,
          'iframe' => 'true',
          'lt' => $id,
          'cat' => $cat,
        ),
      ));
      return $link;
    }
  }
}