|
|
@ -745,9 +745,11 @@ function islandora_get_viewer($params = NULL, $variable_id = NULL, $fedora_objec |
|
|
|
$viewer_id = islandora_get_viewer_id($variable_id); |
|
|
|
$viewer_id = islandora_get_viewer_id($variable_id); |
|
|
|
if ($viewer_id AND $params !== NULL) { |
|
|
|
if ($viewer_id AND $params !== NULL) { |
|
|
|
$callback = islandora_get_viewer_callback($viewer_id); |
|
|
|
$callback = islandora_get_viewer_callback($viewer_id); |
|
|
|
|
|
|
|
if (function_exists($callback)) { |
|
|
|
return $callback($params, $fedora_object); |
|
|
|
return $callback($params, $fedora_object); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return FALSE; |
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|