Browse Source

7.x islandora 1071 (#672)

* Changed hook_preprocess_HOOK() to template_preprocess_HOOK()

* Changed hook_preprocess_HOOK() to template_preprocess_HOOK()

* Changed hook_preprocess_HOOK() to template_preprocess_HOOK()

* Modified comments to say template_preprocess_Hook()

* Changed _Hook to upper case in comments in 3 spots.

* Changed hook_preprocess() to template_preprocess_HOOK()

* Changed hook_preprocess() to template_preprocess_HOOK()

* Changed hook_preprocess() to template_preprocess_HOOK()
pull/678/head
Neil Mader 7 years ago committed by Diego Pino Navarro
parent
commit
b014b6285a
  1. 24
      theme/theme.inc

24
theme/theme.inc

@ -6,9 +6,9 @@
*/ */
/** /**
* Implements hook_preprocess_theme(). * Implements template_preprocess_HOOK().
*/ */
function islandora_preprocess_islandora_default_edit(array &$variables) { function template_preprocess_islandora_default_edit(array &$variables) {
global $base_url; global $base_url;
$islandora_object = $variables['islandora_object']; $islandora_object = $variables['islandora_object'];
$datastreams = array(); $datastreams = array();
@ -116,9 +116,9 @@ function islandora_preprocess_islandora_default_edit(array &$variables) {
} }
/** /**
* Implements hook_preprocess_theme(). * Implements template_preprocess_HOOK().
*/ */
function islandora_preprocess_islandora_default(&$variables) { function template_preprocess_islandora_default(&$variables) {
drupal_add_js('misc/form.js'); drupal_add_js('misc/form.js');
drupal_add_js('misc/collapse.js'); drupal_add_js('misc/collapse.js');
$islandora_object = $variables['islandora_object']; $islandora_object = $variables['islandora_object'];
@ -170,9 +170,9 @@ function islandora_preprocess_islandora_default(&$variables) {
} }
/** /**
* Implements hook_preprocess_theme(). * Implements template_preprocess_HOOK().
*/ */
function islandora_preprocess_islandora_object_print(array &$variables) { function template_preprocess_islandora_object_print(array &$variables) {
// Apply the print CSS in non print context. // Apply the print CSS in non print context.
$only_print_media = function($o) { $only_print_media = function($o) {
return $o['media'] == 'print'; return $o['media'] == 'print';
@ -623,9 +623,9 @@ function theme_islandora_datastream_regenerate_link(array $vars) {
} }
/** /**
* Implements hook_preprocess(). * Implements template_preprocess_HOOK().
*/ */
function islandora_preprocess_islandora_dublin_core_display(array &$variables) { function template_preprocess_islandora_dublin_core_display(array &$variables) {
$islandora_object = $variables['islandora_object']; $islandora_object = $variables['islandora_object'];
if (islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $islandora_object['DC'])) { if (islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $islandora_object['DC'])) {
try { try {
@ -640,9 +640,9 @@ function islandora_preprocess_islandora_dublin_core_display(array &$variables) {
} }
/** /**
* Implements hook_preprocess(). * Implements template_preprocess_HOOK().
*/ */
function islandora_preprocess_islandora_dublin_core_description(array &$variables) { function template_preprocess_islandora_dublin_core_description(array &$variables) {
$islandora_object = $variables['islandora_object']; $islandora_object = $variables['islandora_object'];
if (islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $islandora_object['DC'])) { if (islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $islandora_object['DC'])) {
try { try {
@ -660,9 +660,9 @@ function islandora_preprocess_islandora_dublin_core_description(array &$variable
} }
/** /**
* Implements hook_preprocess(). * Implements template_preprocess_HOOK().
*/ */
function islandora_preprocess_islandora_object_overview(array &$variables) { function template_preprocess_islandora_object_overview(array &$variables) {
$object = $variables['islandora_object']; $object = $variables['islandora_object'];
$cmodels = $object->models; $cmodels = $object->models;
$links = array(); $links = array();

Loading…
Cancel
Save