You are here

function template_preprocess_insert_widget in Insert 6

Same name and namespace in other branches
  1. 7 insert.module \template_preprocess_insert_widget()

Preprocess variables for the insert-widget.tpl.php file.

File

./insert.module, line 419
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 template_preprocess_insert_widget(&$vars) {
  $element = $vars['element'];
  $vars['insert_styles'] = $element['#options'];
  $vars['default_style'] = $element['#default_value'];
  $vars['widget_type'] = $element['#widget']['type'];
}