Skip to content

Commit

Permalink
7.x islandora 1071 (Islandora#672)
Browse files Browse the repository at this point in the history
* 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()
  • Loading branch information
nmader authored and DiegoPino committed May 3, 2017
1 parent 023de6e commit b014b62
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions theme/theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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'];
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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();
Expand Down

0 comments on commit b014b62

Please sign in to comment.