/[drupal]/contributions/modules/mail_api/mail_api.module
ViewVC logotype

Diff of /contributions/modules/mail_api/mail_api.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.21.2.1, Wed Jan 7 21:28:24 2009 UTC revision 1.21.2.2, Thu May 14 18:39:03 2009 UTC
# Line 0  Line 1 
1    <?php
2    // $Id$
3    
4    /**
5     * @file
6     * Provides abstracted message access functions
7     *
8     */
9    
10    define('NAME_MAX_LENGTH', 64);
11    
12    // set this to true to write debug info to the wathdog
13    define('MAIL_API_DEBUG', FALSE);
14    
15    // set this to true to write the error log to the watchdog log
16    define('MAIL_API_ERRORLOG', FALSE);
17    
18    define('MAIL_API_ARRAY', 'array');
19    define('MAIL_API_OBJECT', 'object');
20    
21    
22    $mail_api_module = NULL;
23    
24    /**
25     * Implementation of hook_perm()
26     */
27    function mail_api_perm() {
28      return array('administer mail_api');
29    }
30    
31    /**
32     * Implementation of hook_menu()
33     */
34    function mail_api_menu() {
35    
36      $items['admin/settings/mail_api'] = array(
37        'title' => 'Mail API',
38        'description' => 'List and edit mail servers.',
39        'page callback' => 'mail_api_admin',
40        'access arguments' => array('administer mail_api'),
41        'file' => 'mail_api.admin.inc',
42      );
43    
44      // Tabs:
45      $items['admin/settings/mail_api/new'] = array(
46        'title' => 'Servers',
47        'type' => MENU_DEFAULT_LOCAL_TASK,
48        'weight' => -10,
49      );
50    
51    
52    
53      $items['admin/settings/mail_api/add'] = array(
54        'title' => 'Add Server',
55        'page arguments' => array('add'),
56        'access arguments' => array('administer mail_api'),
57        'type' => MENU_LOCAL_TASK,
58        'file' => 'mail_api.admin.inc',
59      );
60    
61    
62      $items['admin/settings/mail_api/edit'] = array(
63        'title' => 'Edit Server',
64        'page callback' => 'mail_api_edit_server',
65        'access arguments' => array('administer mail_api'),
66        'type' => MENU_CALLBACK,
67        'file' => 'mail_api.admin.inc',
68      );
69    
70      return $items;
71    }
72    
73    
74    
75    /**
76     * Implementation of hook_help()
77     *
78     * @param unknown_type $path
79     * @param unknown_type $arg
80     * @return unknown
81     */
82    function mail_api_help($path, $arg) {
83      switch ($path) {
84        case 'admin/help#mail_api':
85          return t('Implements API for all mail-related functions. This module doesn\'t do anything by itself');
86      }
87    }
88    
89    /**
90     * Implementation of hook_theme().
91     */
92    function mail_api_theme() {
93      return array(
94        'mail_api_settings_overview' => array(
95          'arguments' => array('form' => NULL),
96        ),
97      );
98    }
99    
100    
101    
102    
103    require_once "mail_api.hooks.inc";

Legend:
Removed from v.1.21.2.1  
changed lines
  Added in v.1.21.2.2

  ViewVC Help
Powered by ViewVC 1.1.2