You are here

function google_map_field_help in Google Map Field 7

Same name and namespace in other branches
  1. 7.2 google_map_field.module \google_map_field_help()

Implements hook_help().

File

./google_map_field.module, line 13
This file defines all the necessary hooks and functions to create a Google Map Field field type and also a WYSIWYG editor plugin for inserting maps directly into filtered content.

Code

function google_map_field_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/help#google_map_field':
      $output = t('Add Google Map type fields to content types, or enable an inline map token generator.');
      if (module_exists('wysiwyg')) {
        $url = l(t('Goto WYSIWYG profiles list'), 'admin/config/content/wysiwyg');
        $text = t('Edit your WYSIWYG profiles to enable the Google Map Field Token Genertor (under buttons and plugins).');
        $output .= '<p>' . $text . '</p><p>' . $url . '</p>';
      }
  }
  return $output;
}