function biblio_ui_export_access in Bibliography Module 7.3
Menu access; Allow export based on existing Biblio style and user access.
Parameters
$bids_string: String of comma separated Biblio IDs.
$style_name: Biblio style name.
$format_name: (Optinal) Biblio export format string.
1 string reference to 'biblio_ui_export_access'
- biblio_ui_menu in modules/
biblio_ui/ biblio_ui.module - Implements hook_menu().
File
- modules/
biblio_ui/ biblio_ui.module, line 1197 - Main functionality file for the biblio UI module.
Code
function biblio_ui_export_access($bids_string, $style_name, $format_name = NULL) {
if (!user_access('view biblio')) {
// User can't view Biblios.
return;
}
if (!biblio_get_exportable_biblio_style($style_name, $format_name)) {
// Style name doesn't exist.
return;
}
if (!biblio_ui_get_ids_from_string($bids_string)) {
// No Biblios found on string.
return;
}
return TRUE;
}