You are here

function biblio_ui_description_callback in Bibliography Module 7.3

Generating a description for page when editing or deleting a biblio.

Parameters

$biblio: The biblio object.

$action: The action: delete or edit.

Return value

string The title which the page should present.

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

File

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

Code

function biblio_ui_description_callback($biblio, $action) {
  switch ($action) {
    case "edit":
      $action_string = "Editing";
      break;
    case "delete":
      $action_string = "Deleting";
      break;
    case "export":
      $action_string = "Exporting";
      break;
  }
  return t('@action @title', array(
    '@action' => $action_string,
    '@title' => $biblio->title,
  ));
}