You are here

function node_embed_views_default_views in Node Embed 7

Implements hook_views_default_views().

File

./node_embed.module, line 221
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_views_default_views() {
  $views = array();
  if (module_exists('ckeditor') || module_exists('wysiwyg')) {
    include drupal_get_path('module', 'node_embed') . '/ckeditor/ckeditor_node_embed.view.inc';
    if (isset($view)) {
      $views[$view->name] = $view;
    }
  }
  return $views;
}