Mercurial > defr > drupal > core
comparison modules/contact/contact.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: contact.module,v 1.103 2008/01/16 12:46:52 goba Exp $ | 2 // $Id: contact.module,v 1.103.2.1 2008/04/09 21:11:46 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Enables the use of personal and site-wide contact forms. | 6 * Enables the use of personal and site-wide contact forms. |
7 */ | 7 */ |
57 ); | 57 ); |
58 $items['admin/build/contact/add'] = array( | 58 $items['admin/build/contact/add'] = array( |
59 'title' => 'Add category', | 59 'title' => 'Add category', |
60 'page callback' => 'drupal_get_form', | 60 'page callback' => 'drupal_get_form', |
61 'page arguments' => array('contact_admin_edit', 3), | 61 'page arguments' => array('contact_admin_edit', 3), |
62 'access arguments' => array('administer site-wide contact form'), | |
62 'type' => MENU_LOCAL_TASK, | 63 'type' => MENU_LOCAL_TASK, |
63 'weight' => 1, | 64 'weight' => 1, |
64 'file' => 'contact.admin.inc', | 65 'file' => 'contact.admin.inc', |
65 ); | 66 ); |
66 $items['admin/build/contact/edit/%contact'] = array( | 67 $items['admin/build/contact/edit/%contact'] = array( |
67 'title' => 'Edit contact category', | 68 'title' => 'Edit contact category', |
68 'page callback' => 'drupal_get_form', | 69 'page callback' => 'drupal_get_form', |
69 'page arguments' => array('contact_admin_edit', 3, 4), | 70 'page arguments' => array('contact_admin_edit', 3, 4), |
71 'access arguments' => array('administer site-wide contact form'), | |
70 'type' => MENU_CALLBACK, | 72 'type' => MENU_CALLBACK, |
71 'file' => 'contact.admin.inc', | 73 'file' => 'contact.admin.inc', |
72 ); | 74 ); |
73 $items['admin/build/contact/delete/%contact'] = array( | 75 $items['admin/build/contact/delete/%contact'] = array( |
74 'title' => 'Delete contact', | 76 'title' => 'Delete contact', |
75 'page callback' => 'drupal_get_form', | 77 'page callback' => 'drupal_get_form', |
76 'page arguments' => array('contact_admin_delete', 4), | 78 'page arguments' => array('contact_admin_delete', 4), |
79 'access arguments' => array('administer site-wide contact form'), | |
77 'type' => MENU_CALLBACK, | 80 'type' => MENU_CALLBACK, |
78 'file' => 'contact.admin.inc', | 81 'file' => 'contact.admin.inc', |
79 ); | 82 ); |
80 $items['admin/build/contact/settings'] = array( | 83 $items['admin/build/contact/settings'] = array( |
81 'title' => 'Settings', | 84 'title' => 'Settings', |
82 'page callback' => 'drupal_get_form', | 85 'page callback' => 'drupal_get_form', |
83 'page arguments' => array('contact_admin_settings'), | 86 'page arguments' => array('contact_admin_settings'), |
87 'access arguments' => array('administer site-wide contact form'), | |
84 'type' => MENU_LOCAL_TASK, | 88 'type' => MENU_LOCAL_TASK, |
85 'weight' => 2, | 89 'weight' => 2, |
86 'file' => 'contact.admin.inc', | 90 'file' => 'contact.admin.inc', |
87 ); | 91 ); |
88 $items['contact'] = array( | 92 $items['contact'] = array( |