You are here

function node_embed_filter_info in Node Embed 7

Implements hook_filter_info().

File

./node_embed.module, line 12
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_info() {
  $filters['node_embed'] = array(
    'title' => t('Insert node'),
    'description' => t('By including the syntax [[nid:(node_id)]], this filter will embed the node with given NID'),
    'prepare callback' => 'node_embed_filter_node_embed_prepare',
    'process callback' => 'node_embed_filter_node_embed_process',
    'tips callback' => 'node_embed_filter_node_embed_tips',
    'cache' => FALSE,
  );
  return $filters;
}