You are here

function biblio_ui_manage_bundles in Bibliography Module 7.3

Display list of bundles the user can manage.

1 string reference to 'biblio_ui_manage_bundles'
biblio_ui_menu in modules/biblio_ui/biblio_ui.module
Implements hook_menu().

File

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

Code

function biblio_ui_manage_bundles() {
  $bundles = biblio_types();
  $data = array();
  foreach ($bundles as $i => $bundle) {
    $data[$i] = array(
      theme('biblio_ui_bundle_overview', array(
        'bundle' => $bundle,
      )),
      l(t('Edit'), 'admin/structure/biblio/' . $bundle->type),
      l(t('Manage fields'), 'admin/structure/biblio/' . $bundle->type . '/fields'),
      l(t('Manage display'), 'admin/structure/biblio/' . $bundle->type . '/display'),
    );
    $data[$i][] = biblio_ui_can_delete_bundle($bundle->type) ? l(t('Delete'), 'admin/structure/biblio/' . $bundle->type . '/delete') : '';
  }
  $headers = array(
    t('Name'),
    array(
      'data' => t('Operations'),
      'colspan' => 5,
      'width' => '50%',
    ),
  );
  return theme('table', array(
    'header' => $headers,
    'rows' => $data,
  ));
}