You are here

function theme_getlocations_map_link in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_map/getlocations_map.module \theme_getlocations_map_link()
1 theme call to theme_getlocations_map_link()
getlocations_map_field_formatter_view in modules/getlocations_map/getlocations_map.module
Implements hook_field_formatter_view(). Build a renderable array for a field value.

File

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

Code

function theme_getlocations_map_link($variables) {
  $link_text = $variables['link_text'];
  $entity_type = $variables['entity_type'];
  $entity_id = $variables['entity_id'];
  $output = '';
  $path = 'getlocations/' . $entity_type . '/' . $entity_id;
  $link = t('!l on a map', array(
    '!l' => l($link_text, $path),
  ));
  $output .= '<div class="getlocations_link">' . $link . '</div>';
  return $output;
}