function insert_theme in Insert 7
Same name and namespace in other branches
- 8.2 insert.module \insert_theme()
- 8 insert.module \insert_theme()
- 6 insert.module \insert_theme()
Implements hook_theme().
File
- ./
insert.module, line 111 - 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(
'render element' => 'element',
'template' => 'templates/insert-widget',
),
'insert_field_widget_settings_styles' => array(
'render element' => 'element',
),
// Theme functions in includes/insert.inc.
'insert_image' => array(
'variables' => array(
'item' => NULL,
'widget' => NULL,
),
'template' => 'templates/insert-image',
'file' => 'includes/insert.inc',
),
'insert_link' => array(
'variables' => array(
'item' => NULL,
'widget' => NULL,
),
'template' => 'templates/insert-link',
'file' => 'includes/insert.inc',
),
'insert_icon_link' => array(
'variables' => array(
'item' => NULL,
'widget' => NULL,
),
'template' => 'templates/insert-icon-link',
'file' => 'includes/insert.inc',
),
'insert_video' => array(
'variables' => array(
'item' => NULL,
'widget' => NULL,
),
'template' => 'templates/insert-video',
'file' => 'includes/insert.inc',
),
'insert_audio' => array(
'variables' => array(
'item' => NULL,
'widget' => NULL,
),
'template' => 'templates/insert-audio',
'file' => 'includes/insert.inc',
),
// Theme functions in includes/image.inc.
'image_insert_image' => array(
'variables' => array(
'item' => NULL,
'widget' => NULL,
'style_name' => NULL,
),
'template' => 'templates/image-insert-image',
'pattern' => 'image_insert_image__[a-z0-9_]+',
'file' => 'includes/image.inc',
),
);
}