| 1 |
<?php // $Id: news.module,v 1.11 2008/12/14 02:00:22 vauxia Exp $ |
<?php // $Id: news.module,v 1.12 2009/03/18 22:33:50 vauxia Exp $ |
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 20 |
'file' => 'news.form.inc', |
'file' => 'news.form.inc', |
| 21 |
'file path' => drupal_get_path('module', 'news') .'/includes', |
'file path' => drupal_get_path('module', 'news') .'/includes', |
| 22 |
), |
), |
| 23 |
|
'send/news/send' => array( |
| 24 |
|
'title' => 'Compose', |
| 25 |
|
'page callback' => 'drupal_get_form', |
| 26 |
|
'page arguments' => array('news_form'), |
| 27 |
|
'access arguments' => array('send news'), |
| 28 |
|
'type' => MENU_DEFAULT_LOCAL_TASK, |
| 29 |
|
'file' => 'news.form.inc', |
| 30 |
|
'file path' => drupal_get_path('module', 'news') .'/includes', |
| 31 |
|
'weight' => -10, |
| 32 |
|
), |
| 33 |
|
'send/news/list' => array( |
| 34 |
|
'title' => 'Lists', |
| 35 |
|
'page callback' => 'news_admin_lists', |
| 36 |
|
'access arguments' => array('administer mailing lists'), |
| 37 |
|
'type' => MENU_LOCAL_TASK, |
| 38 |
|
'file' => 'news.admin.inc', |
| 39 |
|
'file path' => drupal_get_path('module', 'news') .'/includes', |
| 40 |
|
), |
| 41 |
'send/news/%' => array( |
'send/news/%' => array( |
| 42 |
'title' => 'Send news', |
'title' => 'Send news', |
| 43 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 82 |
), |
), |
| 83 |
); |
); |
| 84 |
} |
} |
| 85 |
|
|
| 86 |
|
/** |
| 87 |
|
* Implementation of hook_views_api(). |
| 88 |
|
*/ |
| 89 |
|
function news_views_api() { |
| 90 |
|
return array( |
| 91 |
|
'api' => 2, |
| 92 |
|
'path' => drupal_get_path('module', 'news') .'/includes/views', |
| 93 |
|
); |
| 94 |
|
} |