You are here

mail_debugger_php.module in Mail Debugger 7.3

File

modules/php/mail_debugger_php.module
View source
<?php

/**
 * Implement hook_mail_debugger_info();
 * @return type
 */
function mail_debugger_php_mail_debugger_info() {
  return array(
    'php' => array(
      'include' => array(
        'inc',
        'mail_debugger_php',
        'includes/php.mail_debugger',
      ),
      'title' => 'PHP (advanced)',
      'form' => 'mail_debugger_php_form',
      'validate' => 'mail_debugger_php_validate',
      'submit' => 'mail_debugger_php_submit',
    ),
  );
}

/**
 * Implement hook_permission();
 * Define permission for using the module.
 * 
 * @return array
 */
function mail_debugger_php_permission() {
  return array(
    'use mail debugger php' => array(
      'title' => t('Use mail debugger php'),
      // since we expose a PHP interface to the front-end: warn the system admin.
      'restrict access' => TRUE,
    ),
  );
}

Functions

Namesort descending Description
mail_debugger_php_mail_debugger_info Implement hook_mail_debugger_info();
mail_debugger_php_permission Implement hook_permission(); Define permission for using the module.