function callback_filter_process

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 filter.api.php callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id)
cle7 filter.api.php callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id)
elmsmedia7 filter.api.php callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id)
icor7 filter.api.php callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id)
meedjum_blog7 filter.api.php callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id)
mooc7 filter.api.php callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id)

Provide text filtered to conform to the supplied format.

Callback for hook_filter_info().

See hook_filter_info() for a description of the filtering process. This step is where the filter actually transforms the text.

Parameters

$text: The text string to be filtered.

$filter: The filter object containing settings for the given format.

$format: The text format object assigned to the text to be filtered.

$langcode: The language code of the text to be filtered.

$cache: A Boolean indicating whether the filtered text is going to be cached in {cache_filter}.

$cache_id: The ID of the filtered text in {cache_filter}, if $cache is TRUE.

Return value

The filtered text.

Related topics

File

modules/filter/filter.api.php, line 236
Hooks provided by the Filter module.

Code

function callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id) {
  $text = preg_replace('|\[codefilter_code\](.+?)\[/codefilter_code\]|se', "<pre>$1</pre>", $text);

  return $text;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.