| 1 |
<?php
|
| 2 |
// $Id: postalso.module,v 1.2 2008/02/12 14:17:38 millette Exp $
|
| 3 |
/**
|
| 4 |
* @file
|
| 5 |
* Lets users post simultaneously to multiple destinations using remote accounts.
|
| 6 |
*/
|
| 7 |
|
| 8 |
/**
|
| 9 |
* Implementation of hook_menu().
|
| 10 |
*/
|
| 11 |
function postalso_menu() {
|
| 12 |
$items = array();
|
| 13 |
$items['node/%node/postalso'] = array(
|
| 14 |
'title' => 'Post also',
|
| 15 |
'access arguments' => array('postalso post'),
|
| 16 |
'page callback' => 'postalso_node_post',
|
| 17 |
'page arguments' => array(1),
|
| 18 |
'type' => MENU_LOCAL_TASK,
|
| 19 |
'weight' => 3,
|
| 20 |
'file' => 'postalso.pages.inc',
|
| 21 |
);
|
| 22 |
|
| 23 |
$items['admin/settings/postalso'] = array(
|
| 24 |
'description' => 'Administer Post Also destinations',
|
| 25 |
'title' => t('PostAlso'),
|
| 26 |
'access arguments' => array('postalso admin'),
|
| 27 |
'page callback' => 'drupal_get_form',
|
| 28 |
'page arguments' => array('postalso_admin_form'),
|
| 29 |
'file' => 'postalso.admin.inc',
|
| 30 |
'type' => MENU_NORMAL_ITEM,
|
| 31 |
);
|
| 32 |
//die;
|
| 33 |
return $items;
|
| 34 |
}
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
/**
|
| 40 |
* Implementation of hook_form_alter().
|
| 41 |
*/
|
| 42 |
function postalso_form_alter($form_id, &$form) {
|
| 43 |
}
|
| 44 |
|
| 45 |
|
| 46 |
/**
|
| 47 |
* Implementation of hook_perm().
|
| 48 |
*/
|
| 49 |
function postalso_perm() {
|
| 50 |
return array('postalso admin', 'postalso post');
|
| 51 |
}
|
| 52 |
|
| 53 |
|