/[drupal]/contributions/modules/mlm/include/mlm.menu.inc
ViewVC logotype

Diff of /contributions/modules/mlm/include/mlm.menu.inc

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

revision 1.8, Mon Aug 10 01:57:46 2009 UTC revision 1.9, Sun Aug 23 23:06:28 2009 UTC
# Line 1  Line 1 
1  <?php // $Id: mlm.menu.inc,v 1.7 2009/08/10 01:09:32 vauxia Exp $  <?php // $Id: mlm.menu.inc,v 1.8 2009/08/10 01:57:46 vauxia Exp $
2    
3  /**  /**
4   * @file   * @file
# Line 9  Line 9 
9   * Implementation of hook_menu().   * Implementation of hook_menu().
10   */   */
11  function mlm_menu_menu() {  function mlm_menu_menu() {
   // Clear this cache of backends in case something changed.  
   variable_del('mlm_backend_info');  
   
12    $items = array();    $items = array();
13    $path = drupal_get_path('module', 'mlm') .'/include';    $path = drupal_get_path('module', 'mlm') .'/include';
14    
15    $items['mlm'] = array(    $items['mlm'] = array(
16      'title' => 'Subscription preferences',      'title' => 'Subscription preferences',
17      'page callback' => 'mlm_admin_lists',      'page callback' => 'drupal_get_form',
18        'page arguments' => array('mlm_subscription_page'),
19      'access arguments' => array('subscribe to mailing lists'),      'access arguments' => array('subscribe to mailing lists'),
20      'file' => 'admin.inc',      'file' => 'mlm.subscription.inc',
21      'file path' => $path,      'file path' => $path,
22      'type' => MENU_SUGGESTED_ITEM      'type' => MENU_SUGGESTED_ITEM
23    );    );
# Line 35  function mlm_menu_menu() { Line 33  function mlm_menu_menu() {
33    
34    $items['admin/build/mlm/list'] = array(    $items['admin/build/mlm/list'] = array(
35      'title' => 'Lists',      'title' => 'Lists',
     'page callback' => 'drupal_get_form',  
     'page arguments' => array('mlm_admin_settings'),  
     'access arguments' => array('administer mlm'),  
36      'type' => MENU_DEFAULT_LOCAL_TASK,      'type' => MENU_DEFAULT_LOCAL_TASK,
     'file' => 'admin.inc',  
     'file path' => $path,  
37      'weight' => -10,      'weight' => -10,
38    );    );
39    
# Line 87  function mlm_menu_menu() { Line 80  function mlm_menu_menu() {
80    );    );
81    
82    $items['mlm/%mlm/%'] = array(    $items['mlm/%mlm/%'] = array(
83      'page callback' => 'mlm_admin_callback',      'page callback' => 'mlm_subscription_callback',
84      'page arguments' => array(1, 2),      'page arguments' => array(1, 2),
85      'access callback' => 'mlm_access',      'access callback' => 'mlm_access',
86      'access arguments' => array(1),      'access arguments' => array(1),
87      'file' => 'admin.inc',      'file' => 'mlm.subscription.inc',
88      'file path' => $path,      'file path' => $path,
89      'type' => MENU_CALLBACK,      'type' => MENU_CALLBACK,
90    );    );

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.2