Browse Source

Implemented changes requested via code review.

pull/371/head
MorganDawe 12 years ago
parent
commit
5ec2045e15
  1. 2
      css/islandora.print.css
  2. 23
      islandora.api.php

2
css/islandora.print.css

@ -2,7 +2,7 @@
* @file * @file
* Print styling * Print styling
* *
* We provide some sane print styling for Drupal using Zen's layout method. * We provide some sane print styling for Drupal, hiding most visuals.
*/ */
a:link, a:link,
a:visited { /* underline all links */ a:visited { /* underline all links */

23
islandora.api.php

@ -21,9 +21,26 @@
* 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
/** // $islandora_object = islandora_object_load($object->id);
* An alter hook to print friendly page for the given object. // $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;
}
/**
* Generate a print friendly page for the given object.
* *
* @param object $object * @param object $object
* The object form to print. * The object form to print.

Loading…
Cancel
Save