You are here

function biblio_types in Bibliography Module 7.3

Same name and namespace in other branches
  1. 7.2 biblio.module \biblio_types()

Get the bundles of the biblio.

Parameters

string $type: Optional; A specific type name.

Return value

array List of biblio types.

12 calls to biblio_types()
BiblioStyleEndNoteTagged::render in plugins/biblio_style/endnote/BiblioStyleEndNoteTagged.php
@inheritdoc
biblio_entity_info in ./biblio.module
Implements hook_entity_info().
biblio_type_save in ./biblio.module
Save biblio type.
biblio_ui_add_biblio_list in modules/biblio_ui/biblio_ui.module
Display a list of biblio types for creating an entry.
biblio_ui_attach_biblio_fields in modules/biblio_ui/biblio_ui.module
Attach biblio fields to biblio types.

... See full list

2 string references to 'biblio_types'
biblio_ui_manage_bundles_manage in modules/biblio_ui/biblio_ui.module
Managing bundles - creating bundles(i.e biblio types).
biblio_update_7300 in ./biblio.install
Upgrade Biblio schema to 3.x.

File

./biblio.module, line 370
Maintains bibliographic lists.

Code

function biblio_types($type = NULL) {
  $results = db_select('biblio_type')
    ->fields('biblio_type')
    ->execute()
    ->fetchAllAssoc('type');
  if (!empty($type)) {
    return isset($results[$type]) ? $results[$type] : array();
  }
  return $results;
}