/[drupal]/contributions/modules/mlm/backend/mlm.backends.inc
ViewVC logotype

Diff of /contributions/modules/mlm/backend/mlm.backends.inc

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

revision 1.1, Mon Aug 10 01:09:32 2009 UTC revision 1.2, Sun Aug 23 23:06:27 2009 UTC
# Line 1  Line 1 
1  <?php // $Id$  <?php // $Id: mlm.backends.inc,v 1.1 2009/08/10 01:09:32 vauxia Exp $
2    
3  /**  /**
4   * Implementation of our own hook_mlm_backend_info()   * Gather information about MLM backends.
5   */   */
6  function mlm_backend_info() {  function mlm_backend_info() {
7    $backends = module_invoke_all('mlm_backend_info');    $backends = module_invoke_all('mlm_backend_info');
# Line 21  function mlm_mlm_backend_info() { Line 21  function mlm_mlm_backend_info() {
21    return array(    return array(
22      'mlm_drupal' => array(      'mlm_drupal' => array(
23        'title' => t('Drupal'),        'title' => t('Drupal'),
       'supported_types' => array('announcement', 'discussion'),  
24        'path' => $path,        'path' => $path,
25        'description' => t('A native Drupal backend for storing user subscriptions.'),        'description' => t('A native Drupal backend for storing user subscriptions.'),
26      ),      ),
27      'mlm_ezmlm' => array(      'mlm_ezmlm' => array(
28        'title' => t('ezmlm'),        'title' => t('ezmlm'),
       'supported_types' => array('announcement', 'discussion'),  
29        'path' => $path,        'path' => $path,
30        'description' => t('Support for the EZMLM mailing list server. You must have the lists configured separately, but they do not need to be on the same server.'),        'description' => t('Support for the EZMLM mailing list server. You must have the lists configured separately, but they do not need to be on the same server.'),
31      ),      ),
32      'mlm_ezmlm_idx' => array(      'mlm_ezmlm_idx' => array(
33        'title' => t('ezmlm-idx'),        'title' => t('ezmlm-idx'),
34        'parent' => t('mlm_ezmlm'),        'parent' => t('mlm_ezmlm'),
       'supported_types' => array('announcement', 'discussion'),  
35        'path' => $path,        'path' => $path,
36        'description' => t('Extended support for EZMLM. Use this if you are using EZMLM with IDX extensions and this site has access to the the database that is storing subscriptions.'),        'description' => t('Extended support for EZMLM. Use this if you are using EZMLM with IDX extensions and this site has access to the the database that is storing subscriptions.'),
37      ),      ),
38    );    );
39  }  }
40    
41    /**
42     * Gather information about MLM list types.
43     */
44    function mlm_list_type_info() {
45      static $types;
46      if (!isset($types)) {
47        $types = module_invoke_all('mlm_list_type_info');
48      }
49      return $types;
50    }
51    
52    /**
53     * Implementation of our own hook_mlm_list_type_info().
54     */
55    function mlm_mlm_list_type_info() {
56      return array(
57        'announcement' => array(
58          'title' => t('Announcement'),
59        ),
60        'discussion' => array(
61          'title' => t('Discussion'),
62        ),
63      );
64    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2