function theme_getdirections_fields_link in Get Directions 7.3
1 theme call to theme_getdirections_fields_link()
- getdirections_fields_field_formatter_view in modules/
getdirections_fields/ getdirections_fields.module - Implements hook_field_formatter_view(). Build a renderable array for a field value.
File
- modules/
getdirections_fields/ getdirections_fields.module, line 763 - Provides Field module integration for Getdirections
Code
function theme_getdirections_fields_link($variables) {
$link_text = $variables['link_text'];
$entity_type = $variables['entity_type'];
$entity_id = $variables['entity_id'];
$direction = $variables['dir'];
$output = '';
$direction_text = t('to');
if ($direction == 'from') {
$direction_text = t('from');
}
$path = 'getdirections/' . $entity_type . '/' . $direction . '/' . $entity_id;
$link = t('Get directions !t !l', array(
'!t' => $direction_text,
'!l' => l($link_text, $path),
));
$output .= '<div class="getdirections_link">' . $link . '</div>';
return $output;
}