You are here

function bat_type_revision_view in Booking and Availability Management Tools for Drupal 7

Parameters

BatType $type:

int $revision:

1 string reference to 'bat_type_revision_view'
BatTypeUIController::hook_menu in modules/bat_unit/bat_type.admin.inc
Overrides hook_menu() defaults.

File

modules/bat_unit/bat_type.admin.inc, line 885
BatType editing UI.

Code

function bat_type_revision_view(BatType $type, $revision) {
  drupal_set_title(t('Revision of %title from %date', array(
    '%title' => $type->name,
    '%date' => format_date($type->revision_timestamp),
  )), PASS_THROUGH);
  return entity_view('bat_type', array(
    bat_type_load_revision($revision),
  ));
}