function gmap_filter_tips in GMap Module 6.2
Same name and namespace in other branches
- 5 gmap.module \gmap_filter_tips()
- 6 gmap.module \gmap_filter_tips()
Implementation of hook_filter_tips().
File
- ./
gmap.module, line 501 - GMap -- Routines to use the Google Maps API in Drupal.
Code
function gmap_filter_tips($delta, $format, $long = FALSE) {
if (user_access('create gmap macro')) {
// only display macro if user can create one
return t('Insert Google Map macro.') . '<a href="' . url('map/macro') . '" target="_blank" >' . t('Create a macro') . '</a>';
}
else {
return t('Insert Google Map macro.');
}
}