Browse Source

Filter xssing too much, minor doc fixes.

pull/380/head
Jordan Dukart 11 years ago
parent
commit
69010df8ea
  1. 2
      includes/derivatives.inc
  2. 2
      islandora.api.php
  3. 2
      tests/islandora_derivatives_test.module

2
includes/derivatives.inc

@ -91,7 +91,7 @@ function islandora_derivative_logging(array $logging_results) {
foreach ($logging_results as $result) {
foreach ($result['messages'] as $message) {
if ($message['type'] === 'dsm') {
drupal_set_message(filter_xss(format_string($message['message'], isset($message['message_sub']) ? $message['message_sub'] : array()), isset($message['severity']) ? $message['severity'] : 'status'));
drupal_set_message(filter_xss(format_string($message['message'], isset($message['message_sub']) ? $message['message_sub'] : array())), isset($message['severity']) ? $message['severity'] : 'status');
}
else {
watchdog('islandora', $message['message'], isset($message['message_sub']) ? $message['message_sub'] : array(), isset($message['severity']) ? $message['severity'] : WATCHDOG_NOTICE);

2
islandora.api.php

@ -553,6 +553,8 @@ function hook_CMODEL_PID_islandora_datastream_access($op, $object, $user) {
* - severity: (Optional) A severity level / status to be used when
* logging messages. Uses the defaults of drupal_set_message and
* watchdog if not defined.
* - file: A string denoting the path to the file where the function
* is being called from.
*/
function hook_islandora_derivative() {
return array(

2
tests/islandora_derivatives_test.module

@ -6,7 +6,7 @@
*/
/**
* Implements hook_islandora_CMODEL_derivative().
* Implements hook_islandora_CMODEL_PID_derivative().
*/
function islandora_derivatives_test_some_cmodel_islandora_derivative() {
return array(

Loading…
Cancel
Save