You are here

function insert_theme in Insert 6

Same name and namespace in other branches
  1. 8.2 insert.module \insert_theme()
  2. 8 insert.module \insert_theme()
  3. 7 insert.module \insert_theme()

Implementation of hook_theme().

File

./insert.module, line 50
Allows insertion of files, images, and other media directly into the body field by using an "Insert" button next to the uploaded file.

Code

function insert_theme() {
  return array(
    'insert_widget' => array(
      'arguments' => array(
        'element' => NULL,
      ),
      'template' => 'templates/insert-widget',
    ),
    'insert_field_widget_settings_styles' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    // Theme functions in includes/insert.inc.
    'insert_image' => array(
      'arguments' => array(
        'item' => NULL,
        'widget' => NULL,
      ),
      'template' => 'templates/insert-image',
      'file' => 'includes/insert.inc',
    ),
    'insert_link' => array(
      'arguments' => array(
        'item' => NULL,
        'widget' => NULL,
      ),
      'template' => 'templates/insert-link',
      'file' => 'includes/insert.inc',
    ),
    'insert_icon_link' => array(
      'arguments' => array(
        'item' => NULL,
        'widget' => NULL,
      ),
      'template' => 'templates/insert-icon-link',
      'file' => 'includes/insert.inc',
    ),
    // Theme functions in includes/imagecache.inc.
    'imagecache_insert_image' => array(
      'arguments' => array(
        'item' => NULL,
        'widget' => NULL,
        'preset_name' => NULL,
      ),
      'template' => 'templates/imagecache-insert-image',
      'pattern' => 'imagecache_insert_image__[a-z0-9_]+',
      'file' => 'includes/imagecache.inc',
    ),
  );
}