You are here

function biblio_ui_entity_info_alter in Bibliography Module 7.3

Implements hook_entity_info_alter().

File

modules/biblio_ui/biblio_ui.module, line 346
Main functionality file for the biblio UI module.

Code

function biblio_ui_entity_info_alter(&$info) {
  if (!($biblio_types = biblio_types())) {
    return;
  }
  foreach ($biblio_types as $bundle) {
    $info['biblio']['bundles'][$bundle->type] = array(
      'label' => $bundle->name,
      'admin' => array(
        'path' => 'admin/structure/biblio/' . $bundle->type,
        'access arguments' => array(
          'manage biblio structure',
        ),
      ),
    );
  }
}