Browse Source

Removed old hook.

pull/371/head
MorganDawe 11 years ago
parent
commit
1314c7dc06
  1. 2
      css/islandora.print.css
  2. 32
      islandora.api.php

2
css/islandora.print.css

@ -69,4 +69,4 @@ body.sidebar-first {
.feed-icons { /* Hide sidebars and nav elements */
visibility: hidden !important;
display: none !important;
}
}

32
islandora.api.php

@ -21,23 +21,21 @@
* An array whose values are markup.
*/
function hook_islandora_view_object($object, $user, $page_number, $page_size) {
// Example Implementation
// $islandora_object = islandora_object_load($object->id);
// $output = array();
// if (in_array('islandora:sp_basic_image', $islandora_object->models)) {
// $resource_url = url("islandora/object/{$object->id}/datastream/OBJ/view");
// $params = array(
// 'title' => $islandora_object->label,
// 'path' => $resource_url,
// );
// // Theme the image seperatly.
// $variables['islandora_img'] = theme('image', $params);
// $output = theme('islandora_default_print', array(
// 'islandora_content' => $variables['islandora_img']));
// }
// return $output;
$output = array();
if (in_array('islandora:sp_basic_image', $object->models)) {
$resource_url = url("islandora/object/{$object->id}/datastream/OBJ/view");
$params = array(
'title' => $object->label,
'path' => $resource_url,
);
// Theme the image seperatly.
$variables['islandora_img'] = theme('image', $params);
$output = theme('islandora_default_print', array(
'islandora_content' => $variables['islandora_img']));
}
return $output;
}
/**
* Generate a print friendly page for the given object.

Loading…
Cancel
Save