function theme_getlocations_leaflet_link in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_leaflet/getlocations_leaflet.module \theme_getlocations_leaflet_link()
Function
Return value
Returns
1 theme call to theme_getlocations_leaflet_link()
- getlocations_leaflet_field_formatter_view in modules/getlocations_leaflet/ getlocations_leaflet.module 
- Implements hook_field_formatter_view(). Build a renderable array for a field value.
File
- modules/getlocations_leaflet/ getlocations_leaflet.module, line 5280 
- getlocations_leaflet.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function theme_getlocations_leaflet_link($variables) {
  $link_text = $variables['link_text'];
  $entity_type = $variables['entity_type'];
  $entity_id = $variables['entity_id'];
  $output = '';
  $path = 'getlocations_leaflet/' . $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;
}