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