function media_filter in D7 Media 7
Filter callback for media markup filter.
@TODO check for security probably pass text through filter_xss
Return value
unknown_type
1 string reference to 'media_filter'
- media_filter_info in ./
media.module - Implements hook_filter_info().
File
- includes/
media.filter.inc, line 208 - Functions related to the WYSIWYG editor and the media input filter.
Code
function media_filter($text) {
$text = ' ' . $text . ' ';
$text = preg_replace_callback(MEDIA_TOKEN_REGEX, 'media_token_to_markup', $text);
return $text;
}