Browse Source

Removed old hook.

pull/371/head
MorganDawe 12 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 */ .feed-icons { /* Hide sidebars and nav elements */
visibility: hidden !important; visibility: hidden !important;
display: none !important; display: none !important;
} }

32
islandora.api.php

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

Loading…
Cancel
Save