From b014b6285a2919fc73a15bc908b2de1d3c47616d Mon Sep 17 00:00:00 2001 From: Neil Mader Date: Wed, 3 May 2017 15:26:52 -0300 Subject: [PATCH] 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() --- theme/theme.inc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/theme/theme.inc b/theme/theme.inc index 4405c288..81c4a33f 100644 --- a/theme/theme.inc +++ b/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; $islandora_object = $variables['islandora_object']; $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/collapse.js'); $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. $only_print_media = function($o) { 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']; if (islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $islandora_object['DC'])) { 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']; if (islandora_datastream_access(ISLANDORA_VIEW_OBJECTS, $islandora_object['DC'])) { 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']; $cmodels = $object->models; $links = array();