| 1 |
<?php |
<?php |
| 2 |
// $Id: adminrole.module,v 1.2.2.8 2008/06/25 11:56:13 jacobsingh Exp $ |
// $Id: adminrole.module,v 1.2.2.8.2.1 2008/07/28 18:10:32 jacobsingh Exp $ |
| 3 |
|
|
| 4 |
/** @file |
/** @file |
| 5 |
* adminrole: |
* adminrole: |
| 35 |
$items['admin/adminrole/update'] = array( |
$items['admin/adminrole/update'] = array( |
| 36 |
'title' => t('Update AdminRole'), |
'title' => t('Update AdminRole'), |
| 37 |
'page callback' => 'adminrole_update_perms', |
'page callback' => 'adminrole_update_perms', |
| 38 |
'access arguments' => user_access('administer site configuration'), |
'access arguments' => array('administer site configuration'), |
| 39 |
'type' => MENU_CALLBACK |
'type' => MENU_CALLBACK |
| 40 |
); |
); |
| 41 |
|
|
| 76 |
} |
} |
| 77 |
|
|
| 78 |
|
|
| 79 |
function adminrole_form_alter(&$form, $form_state, $form_id) { |
function adminrole_form_alter(&$form, $form_state, $form_id) { |
| 80 |
if (in_array($form_id, array('system_modules', 'adminrole_admin_settings'))) { |
if (in_array($form_id, array('system_modules', 'adminrole_admin_settings'))) { |
| 81 |
$form['#submit'][] = 'adminrole_update_perms'; |
$form['#submit'][] = 'adminrole_update_perms'; |
| 82 |
} |
} |