function _biblio_get_styles in Bibliography Module 5
1 call to _biblio_get_styles()
- biblio_settings in ./
biblio.module - Implementation of hook_settings().
File
- ./
biblio.module, line 610
Code
function _biblio_get_styles() {
$styles = array();
$dir = drupal_get_path('module', 'biblio');
$files = array();
if ($dh = opendir($dir)) {
while (($files[] = readdir($dh)) !== false) {
}
closedir($dh);
foreach ($files as $file) {
if (strstr($file, 'biblio_style_')) {
//find the style files
include_once $dir . "/" . $file;
if (function_exists(basename($file, ".inc") . '_info')) {
$styles = array_merge($styles, call_user_func(basename($file, ".inc") . '_info'));
//build and array of the short and long names
}
}
}
}
return $styles;
}