You are here

function openlayers_filters_filter_tips in Openlayers 6

Same name and namespace in other branches
  1. 6.2 modules/openlayers_filters/openlayers_filters.module \openlayers_filters_filter_tips()

Implementation of hook_filter_tips().

File

modules/openlayers_filters/openlayers_filters.module, line 95
This file holds the main Drupal hook functions and private functions for the openlayers_filters module.

Code

function openlayers_filters_filter_tips($delta, $format, $long = FALSE) {
  switch ($delta) {
    case 0:
      if ($long) {

        // @@TODO: Make better description for long text
        return t('Substitutes a macro text like !macro_example into a the appropriate rendered OpenLayers map.', array(
          '!macro_example' => '[openlayers preset_name]',
        ));
      }
      else {
        return t('Substitutes a macro text like !macro_example into a the appropriate rendered OpenLayers map.', array(
          '!macro_example' => '[openlayers preset_name]',
        ));
      }
      break;
  }
}