Mercurial > defr > drupal > core
comparison modules/trigger/trigger.module @ 5:2427550111ae 6.2
Drupal 6.2
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:30:08 +0100 |
parents | c1f4ac30525a |
children |
comparison
equal
deleted
inserted
replaced
4:d94886ac61a0 | 5:2427550111ae |
---|---|
1 <?php | 1 <?php |
2 // $Id: trigger.module,v 1.13 2008/01/21 20:08:15 goba Exp $ | 2 // $Id: trigger.module,v 1.13.2.1 2008/04/09 21:11:51 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Enables functions to be stored and executed at a later time when | 6 * Enables functions to be stored and executed at a later time when |
7 * triggered by other modules or by one of Drupal's core API hooks. | 7 * triggered by other modules or by one of Drupal's core API hooks. |
47 // not invisible items. | 47 // not invisible items. |
48 $items['admin/build/trigger/node'] = array( | 48 $items['admin/build/trigger/node'] = array( |
49 'title' => 'Content', | 49 'title' => 'Content', |
50 'page callback' => 'trigger_assign', | 50 'page callback' => 'trigger_assign', |
51 'page arguments' => array('node'), | 51 'page arguments' => array('node'), |
52 'access callback' => 'trigger_access_check', | |
52 'access arguments' => array('node'), | 53 'access arguments' => array('node'), |
53 'type' => MENU_LOCAL_TASK, | 54 'type' => MENU_LOCAL_TASK, |
54 'file' => 'trigger.admin.inc', | 55 'file' => 'trigger.admin.inc', |
55 ); | 56 ); |
56 $items['admin/build/trigger/user'] = array( | 57 $items['admin/build/trigger/user'] = array( |
57 'title' => 'Users', | 58 'title' => 'Users', |
58 'page callback' => 'trigger_assign', | 59 'page callback' => 'trigger_assign', |
59 'page arguments' => array('user'), | 60 'page arguments' => array('user'), |
61 'access callback' => 'trigger_access_check', | |
60 'access arguments' => array('user'), | 62 'access arguments' => array('user'), |
61 'type' => MENU_LOCAL_TASK, | 63 'type' => MENU_LOCAL_TASK, |
62 'file' => 'trigger.admin.inc', | 64 'file' => 'trigger.admin.inc', |
63 ); | 65 ); |
64 $items['admin/build/trigger/comment'] = array( | 66 $items['admin/build/trigger/comment'] = array( |
81 ); | 83 ); |
82 $items['admin/build/trigger/cron'] = array( | 84 $items['admin/build/trigger/cron'] = array( |
83 'title' => 'Cron', | 85 'title' => 'Cron', |
84 'page callback' => 'trigger_assign', | 86 'page callback' => 'trigger_assign', |
85 'page arguments' => array('cron'), | 87 'page arguments' => array('cron'), |
88 'access arguments' => array('administer actions'), | |
86 'type' => MENU_LOCAL_TASK, | 89 'type' => MENU_LOCAL_TASK, |
87 'file' => 'trigger.admin.inc', | 90 'file' => 'trigger.admin.inc', |
88 ); | 91 ); |
89 | 92 |
90 // We want contributed modules to be able to describe | 93 // We want contributed modules to be able to describe |
110 $items['admin/build/trigger/unassign'] = array( | 113 $items['admin/build/trigger/unassign'] = array( |
111 'title' => 'Unassign', | 114 'title' => 'Unassign', |
112 'description' => 'Unassign an action from a trigger.', | 115 'description' => 'Unassign an action from a trigger.', |
113 'page callback' => 'drupal_get_form', | 116 'page callback' => 'drupal_get_form', |
114 'page arguments' => array('trigger_unassign'), | 117 'page arguments' => array('trigger_unassign'), |
118 'access arguments' => array('administer actions'), | |
115 'type' => MENU_CALLBACK, | 119 'type' => MENU_CALLBACK, |
116 'file' => 'trigger.admin.inc', | 120 'file' => 'trigger.admin.inc', |
117 ); | 121 ); |
118 | 122 |
119 return $items; | 123 return $items; |