You are here

function theme_widgets_element_view in Widgets 7

1 theme call to theme_widgets_element_view()
widgets_definition_preview_form in ./widgets.admin.inc

File

./widgets.module, line 1342
Exposes global functionality for creating widget sets.

Code

function theme_widgets_element_view($variables) {
  $element = $variables['element'];

  // Wrap element in a set and send it to theme set.
  $set = array(
    'name' => 'test',
    'elements' => array(
      $element,
    ),
  );
  $output = theme('widgets_set_view', array(
    'set' => $set,
  ));
  return $output;
}