You are here

function iframe_init in Iframe 7

Same name and namespace in other branches
  1. 6 iframe.module \iframe_init()

Support for local-domain iframes and autoresize the height

Implementation of hook_init().

File

./iframe.module, line 821
Defines an iframe field with all attributes.

Code

function iframe_init() {
  drupal_add_js(drupal_get_path('module', 'iframe') . '/iframe.js');
  if (!function_exists('iframe_content_migrate_field_alter')) {
    if (function_exists('module_load_include')) {
      module_load_include('inc', 'iframe', 'iframe.content_migrate.iframe');
    }
  }
  if (!function_exists('iframe_feeds_set_target')) {
    if (function_exists('module_load_include')) {
      module_load_include('inc', 'iframe', 'mappers/iframe');
    }
  }
}