You are here

function _biblio_author_edit_links in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 includes/biblio.pages.inc \_biblio_author_edit_links()
  2. 6 biblio.pages.inc \_biblio_author_edit_links()
  3. 7 includes/biblio.pages.inc \_biblio_author_edit_links()
1 call to _biblio_author_edit_links()
_biblio_format_author in includes/biblio.pages.inc

File

includes/biblio.pages.inc, line 1331

Code

function _biblio_author_edit_links($author) {
  static $path = '';
  $destination = drupal_get_destination();
  if (empty($path)) {
    $path = ord(substr($_GET['q'], -1)) > 97 ? $_GET['q'] . "/" : substr($_GET['q'], 0, -1);
    $path = strpos($path, 'list/') ? str_replace('list/', '', $path) : $path;
  }
  return l(' [' . t('edit') . ']', $path . $author->cid . "/edit", array(
    'query' => $destination,
  ));
}