function _biblio_admin_get_styles in Bibliography Module 6
4 calls to _biblio_admin_get_styles()
- biblio_admin_settings in ./
biblio.admin.inc - Implementation of hook_settings().
- biblio_handler_citation::options_form in views/
biblio_handler_citation.inc - biblio_handler_field_contributor::options_form in views/
biblio_handler_field_contributor.inc - _biblio_get_user_profile_form in ./
biblio.admin.inc
File
- ./
biblio.admin.inc, line 1497
Code
function _biblio_admin_get_styles() {
$styles = array();
$dir = drupal_get_path('module', 'biblio');
$files = file_scan_directory($dir, 'biblio_style_..*.inc$');
foreach ($files as $file) {
include_once $file->filename;
$function = $file->name . '_info';
if (function_exists($function)) {
$styles = array_merge($styles, call_user_func($function));
//build and array of the short and long names
}
}
ksort($styles);
return $styles;
}