| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: admin.php,v 1.1.2.2 2008/09/09 11:11:13 anselmheaton Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_menu() for admin pages |
* Implementation of hook_menu() for admin pages |
| 57 |
'#default_value' => variable_get('nodereferrer_create_javascript', 1), |
'#default_value' => variable_get('nodereferrer_create_javascript', 1), |
| 58 |
); |
); |
| 59 |
|
|
| 60 |
|
/* Access settings */ |
| 61 |
|
$form['nodereferrer_create_access_group'] = array( |
| 62 |
|
'#type' => 'fieldset', |
| 63 |
|
'#collapsible' => true, |
| 64 |
|
'#collapsed' => true, |
| 65 |
|
'#title' => t('Access settings'), |
| 66 |
|
); |
| 67 |
|
|
| 68 |
|
$form['nodereferrer_create_access_group']['nodereferrer_create_access_if_local_node'] = array( |
| 69 |
|
'#type' => 'checkbox', |
| 70 |
|
'#title' => t('Only show menus if user can edit current node'), |
| 71 |
|
'#description' => t('By default, Nodereferrer Create will show \'create related content\' menus if the |
| 72 |
|
user has the access rights to create the related content - regardless of the user\'s |
| 73 |
|
access rights to the current node. If this is checked, Nodereferrer Create will |
| 74 |
|
only show the \'create related content\' menus if the user has the access rights |
| 75 |
|
to the related content AND to the current node. This is cosmetic only - the user |
| 76 |
|
can always create the related content some other way.'), |
| 77 |
|
'#default_value' => variable_get('nodereferrer_create_access_if_local_node', 0), |
| 78 |
|
); |
| 79 |
|
|
| 80 |
/* Syncronisation settings */ |
/* Syncronisation settings */ |
| 81 |
|
|
| 82 |
$form['nodereferrer_create_sync_group'] = array( |
$form['nodereferrer_create_sync_group'] = array( |