function biblio_get_types_info in Bibliography Module 7.3
Return default Biblio types definitions.
Parameters
$type: Optional; The definition of the given type. If empty, all types will be returned.
2 calls to biblio_get_types_info()
- BiblioStyleBibtex::render in plugins/
biblio_style/ bibtex/ BiblioStyleBibtex.class.php - @inheritdoc
- biblio_add_publication_types in ./
biblio.module - Create new Biblio bundles.
File
- ./
biblio.module, line 887 - Maintains bibliographic lists.
Code
function biblio_get_types_info($type = NULL) {
$return =& drupal_static(__FUNCTION__, array());
if (empty($return)) {
foreach (module_implements('biblio_types_info') as $module) {
if ($types = module_invoke($module, 'biblio_types_info')) {
foreach ($types as $key => $value) {
// Add default values.
$value += array(
'description' => '',
'style_info' => array(),
);
// Add the module information.
$return[$key] = array_merge($value, array(
'module' => $module,
));
}
}
}
// Allow other modules to alter the field info.
drupal_alter('biblio_types_info', $return);
}
if (!empty($type)) {
return !empty($return[$type]) ? $return[$type] : FALSE;
}
return $return;
}