You are here

mail_debugger.module in Mail Debugger 7.3

Same filename and directory in other branches
  1. 8 mail_debugger.module
  2. 7 mail_debugger.module
  3. 7.2 mail_debugger.module

File

mail_debugger.module
View source
<?php

/**
 * Implement hook_permission();
 * 
 * @return array
 */
function mail_debugger_permission() {
  return array(
    'use mail debugger tools' => array(
      'title' => t('Use mail debugger tools'),
      'restrict access' => TRUE,
    ),
  );
}

/**
 * Implement hook_menu();
 * @return type
 */
function mail_debugger_menu() {
  return array(
    'admin/config/development/mail_debugger' => array(
      'title' => "Mail debugger",
      'description' => "Test the mail interface",
      'page arguments' => array(
        'mail_debugger_callback',
      ),
      'page callback' => 'drupal_get_form',
      'access arguments' => array(
        'use mail debugger tools',
      ),
      'file' => 'includes/mail_debugger.callback.inc',
      'type' => MENU_LOCAL_TASK,
    ),
  );
}

/**
 * Implement hook_hook_info();
 * 
 * @return array()
 */
function mail_debugger_hook_info() {
  return array(
    'mail_debugger_info' => array(
      'group' => 'mail_debugger',
    ),
    'mail_debugger_info_alter' => array(
      'group' => 'mail_debugger',
    ),
  );
}