You are here

function theme_biblio_ui_add_biblio_list in Bibliography Module 7.3

Theme callback - display a list of the biblio entry a user can create.

1 theme call to theme_biblio_ui_add_biblio_list()
biblio_ui_add_biblio_list in modules/biblio_ui/biblio_ui.module
Display a list of biblio types for creating an entry.

File

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

Code

function theme_biblio_ui_add_biblio_list($variables) {
  $types = $variables['types'];
  if ($types) {
    $output = '<ul class="admin-list">';
    foreach ($types as $type => $info) {
      $output .= '<li class="clearfix">';
      $output .= '<span class="label">' . l($info->name, 'biblio/add/' . $type) . '</span>';
      $output .= '<div class="description">' . filter_xss_admin($info->description) . '</div>';
      $output .= '</li>';
    }
    $output .= '</ul>';
  }
  else {
    $output = '<p>' . t('There is no bilbio types. Go to the <a href="@url">biblio types create page</a> to add a new biblio type.', array(
      '@url' => url('admin/structure/biblio'),
    )) . '</p>';
  }
  return $output;
}