You are here

function node_embed_filter_node_embed_process in Node Embed 7

Process callback for hook_filter.

1 string reference to 'node_embed_filter_node_embed_process'
node_embed_filter_info in ./node_embed.module
Implements hook_filter_info().

File

./node_embed.module, line 35
This module defines an input filter for taking an embed code syntax ([[nid: ###]]) and removing the embed code and replacing with a rendered node view at that position in the text field.

Code

function node_embed_filter_node_embed_process($text, $filter, $format, $langcode, $cache, $cache_id) {
  return preg_replace_callback('/\\[\\[nid:(\\d+)(\\s.*)?\\]\\]/', '_node_embed_replacements', $text);
}