You are here

function invisimail_menu in Invisimail 6

Implementation of hook_menu();

File

./invisimail.module, line 29
This module provides a filter that will search content for email addresses and replace them with their ascii equivalents before display. This is not a complete protection from spam harvesters, but it is some help.

Code

function invisimail_menu() {
  $items = array();

  // This configuration page only really makes sense if you have email field installed.
  if (module_exists('email')) {
    $items['admin/settings/invisimail'] = array(
      'title' => t('Invisimail formatter'),
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'invisimail_formatter_settings',
      ),
      'access arguments' => array(
        'administer invisimail formatter',
      ),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}