You are here

function theme_webform_components_page in Webform 6.3

Same name and namespace in other branches
  1. 7.4 includes/webform.components.inc \theme_webform_components_page()
  2. 7.3 includes/webform.components.inc \theme_webform_components_page()

Theme the output of the main components page.

This theming provides a way to toggle between the editing modes if Form Builder module is available.

1 theme call to theme_webform_components_page()
webform_components_page in includes/webform.components.inc
Overview page of all components for this webform.

File

includes/webform.components.inc, line 28
Webform module component handling.

Code

function theme_webform_components_page($node, $form) {

  // Add CSS and JS. Don't preprocess because these files are used rarely.
  drupal_add_css(drupal_get_path('module', 'webform') . '/css/webform-admin.css', 'theme', 'all', FALSE);
  drupal_add_js(drupal_get_path('module', 'webform') . '/js/webform-admin.js', 'module', 'header', FALSE, TRUE, FALSE);
  return $form;
}