You are here

private function ResourceReadOnlyStreamWrapper::_report_error in D7 Media 6

Report an error.

Parameters

$message: The untranslated string to report. @param $options An optional array of options to send to t(). @param $display If TRUE, then we display the error to the user. @return We return FALSE, since we sometimes pass that back from the reporting function.

1 call to ResourceReadOnlyStreamWrapper::_report_error()
ResourceReadOnlyStreamWrapper::stream_open in resource/ResourceReadOnlyStreamWrapper.inc
Support for fopen(), file_get_contents(), file_put_contents() etc.

File

resource/ResourceReadOnlyStreamWrapper.inc, line 42

Class

ResourceReadOnlyStreamWrapper
A base class for Resource Stream Wrappers.

Code

private function _report_error($message, $options = array(), $display = FALSE) {
  watchdog('resource', $message, $options, WATCHDOG_ERROR);
  if ($display) {
    drupal_set_message(t($message, $options), 'error');
  }
  return FALSE;
}