| 1 |
<?php |
<?php |
| 2 |
// $Id: biblio.admin.inc,v 1.24 2009/01/30 20:50:09 rhaschke Exp $ |
// $Id: biblio.admin.inc,v 1.25 2009/02/01 00:11:21 rhaschke Exp $ |
| 3 |
/** |
/** |
| 4 |
* biblio.admin.inc |
* biblio.admin.inc |
| 5 |
* |
* |
| 33 |
* Implementation of hook_settings(). |
* Implementation of hook_settings(). |
| 34 |
*/ |
*/ |
| 35 |
function biblio_admin_settings() { |
function biblio_admin_settings() { |
| 36 |
$version = '$Revision: 1.24 $ $Date: 2009/01/30 20:50:09 $'; |
$version = '$Revision: 1.25 $ $Date: 2009/02/01 00:11:21 $'; |
| 37 |
$version = str_replace('$', '', $version); |
$version = str_replace('$', '', $version); |
| 38 |
$form['biblio_rev'] = array( |
$form['biblio_rev'] = array( |
| 39 |
'#value' => $version, |
'#value' => $version, |
| 470 |
$msg .= t('Checking the "Visible" box will add the field to the input form, checking "Required" will force the user to supply a value for this field and the weight value changes the order which it is rendered on the form with smaller values floating to the top of the form. '); |
$msg .= t('Checking the "Visible" box will add the field to the input form, checking "Required" will force the user to supply a value for this field and the weight value changes the order which it is rendered on the form with smaller values floating to the top of the form. '); |
| 471 |
$msg .= '<p>'. t('Fields which are grayed out on this page have been set to "common" on the '); |
$msg .= '<p>'. t('Fields which are grayed out on this page have been set to "common" on the '); |
| 472 |
$msg .= l("admin/settings/biblio/defaults", "admin/settings/biblio/defaults"); |
$msg .= l("admin/settings/biblio/defaults", "admin/settings/biblio/defaults"); |
| 473 |
$msg .= t(' page.'); |
$msg .= t(' page.').'</p>'; |
| 474 |
} |
} |
| 475 |
else { |
else { |
| 476 |
$msg .= t('Checking the "Common" box will add the field to all the differnet publication types. Checking "Required" will force the user to supply a value for the field, checking "Autocomplete" will enable AJAX type auto complete look up for the field when the user is entering data and the weight value changes the order which it is rendered on the form with smaller values floating to the top of the form. '); |
$msg .= t('Checking the "Common" box will add the field to all the different publication types. Checking "Required" will force the user to supply a value for the field, checking "Autocomplete" will enable AJAX type auto complete look up for the field when the user is entering data and the weight value changes the order which it is rendered on the form with smaller values floating to the top of the form. '); |
| 477 |
} |
} |
| 478 |
|
$msg .= t('Finally, for each author field you can choose a set of author roles. Assigning different roles to authors within the same field, e.g. primary and secondary authors within the authors field, allows to theme them differently.'); |
| 479 |
$msg .= '</div>'; |
$msg .= '</div>'; |
| 480 |
$form['#redirect'] = 'admin/settings/biblio/types'; |
$form['#redirect'] = 'admin/settings/biblio/types'; |
| 481 |
$form['help'] = array( |
$form['help'] = array( |