You are here

function _webform_theme_view in Webform view 7

Same name and namespace in other branches
  1. 7.4 webform_view.inc \_webform_theme_view()

Declare rendering routines for our element.

Called by webform to register theme functions that the individual cpmponent uses.

Implements _webform_theme_COMPONENT().

File

./webform_view.inc, line 342
Additional component for webform that allows views to be used as embeddable elements.

Code

function _webform_theme_view() {

  // Declares different theme func for on-screen and text-output of the results.
  // Note, not the form  element.
  return array(
    // Text version.
    'webform_display_view' => array(
      'render element' => 'element',
    ),
    // HTML version.
    // This renders the element when in the actual webform
    // needs to be named _embedded to avoid a name collision.
    'webform_view_embedded' => array(
      'render element' => 'element',
    ),
  );
}