You are here

function gmap_filter_tips in GMap Module 5

Same name and namespace in other branches
  1. 6.2 gmap.module \gmap_filter_tips()
  2. 6 gmap.module \gmap_filter_tips()

Implementation of hook_filter_tips().

File

./gmap.module, line 465
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.');
  }
}