function webform_theme in Webform 7.3
Same name and namespace in other branches
- 8.5 includes/webform.theme.inc \webform_theme()
- 6.3 webform.module \webform_theme()
- 6.2 webform.module \webform_theme()
- 7.4 webform.module \webform_theme()
- 6.x includes/webform.theme.inc \webform_theme()
Implements hook_theme().
File
- ./
webform.module, line 529 - This module provides a simple way to create forms and questionnaires.
Code
function webform_theme() {
$theme = array(
// webform.module.
'webform_view' => array(
'render element' => 'webform',
),
'webform_view_messages' => array(
'variables' => array(
'node' => NULL,
'teaser' => NULL,
'page' => NULL,
'submission_count' => NULL,
'user_limit_exceeded' => NULL,
'total_limit_exceeded' => NULL,
'allowed_roles' => NULL,
'closed' => NULL,
'cached' => NULL,
),
),
'webform_form' => array(
'render element' => 'form',
'template' => 'templates/webform-form',
'pattern' => 'webform_form_[0-9]+',
),
'webform_confirmation' => array(
'variables' => array(
'node' => NULL,
'sid' => NULL,
),
'template' => 'templates/webform-confirmation',
'pattern' => 'webform_confirmation_[0-9]+',
),
'webform_element' => array(
'render element' => 'element',
),
'webform_element_text' => array(
'render element' => 'element',
),
'webform_inline_radio' => array(
'render element' => 'element',
),
'webform_mail_message' => array(
'variables' => array(
'node' => NULL,
'submission' => NULL,
'email' => NULL,
),
'template' => 'templates/webform-mail',
'pattern' => 'webform_mail(_[0-9]+)?',
),
'webform_mail_headers' => array(
'variables' => array(
'node' => NULL,
'submission' => NULL,
'email' => NULL,
),
'pattern' => 'webform_mail_headers_[0-9]+',
),
'webform_token_help' => array(
'variables' => array(
'groups' => array(),
),
),
// webform.admin.inc.
'webform_admin_settings' => array(
'render element' => 'form',
'file' => 'includes/webform.admin.inc',
),
'webform_admin_content' => array(
'variables' => array(
'nodes' => NULL,
),
'file' => 'includes/webform.admin.inc',
),
// webform.emails.inc.
'webform_emails_form' => array(
'render element' => 'form',
'file' => 'includes/webform.emails.inc',
),
'webform_email_add_form' => array(
'render element' => 'form',
'file' => 'includes/webform.emails.inc',
),
'webform_email_edit_form' => array(
'render element' => 'form',
'file' => 'includes/webform.emails.inc',
),
// webform.components.inc.
'webform_components_page' => array(
'variables' => array(
'node' => NULL,
'form' => NULL,
),
'file' => 'includes/webform.components.inc',
),
'webform_components_form' => array(
'render element' => 'form',
'file' => 'includes/webform.components.inc',
),
'webform_component_select' => array(
'render element' => 'element',
'file' => 'includes/webform.components.inc',
),
// webform.pages.inc.
'webform_advanced_redirection_form' => array(
'render element' => 'form',
'file' => 'includes/webform.pages.inc',
),
'webform_advanced_submit_limit_form' => array(
'render element' => 'form',
'file' => 'includes/webform.pages.inc',
),
'webform_advanced_total_submit_limit_form' => array(
'render element' => 'form',
'file' => 'includes/webform.pages.inc',
),
// webform.report.inc.
'webform_results_per_page' => array(
'variables' => array(
'total_count' => NULL,
'pager_count' => NULL,
),
'file' => 'includes/webform.report.inc',
),
'webform_results_submissions_header' => array(
'variables' => array(
'node' => NULL,
),
'file' => 'includes/webform.report.inc',
),
'webform_results_submissions' => array(
'render element' => 'element',
'template' => 'templates/webform-results-submissions',
'file' => 'includes/webform.report.inc',
),
'webform_results_table_header' => array(
'variables' => array(
'node' => NULL,
),
'file' => 'includes/webform.report.inc',
),
'webform_results_table' => array(
'variables' => array(
'node' => NULL,
'components' => NULL,
'submissions' => NULL,
'node' => NULL,
'total_count' => NULL,
'pager_count' => NULL,
),
'file' => 'includes/webform.report.inc',
),
'webform_results_download_range' => array(
'render element' => 'element',
'file' => 'includes/webform.report.inc',
),
'webform_results_download_select_format' => array(
'render element' => 'element',
'file' => 'includes/webform.report.inc',
),
'webform_results_analysis' => array(
'variables' => array(
'node' => NULL,
'data' => NULL,
'sids' => array(),
'component' => NULL,
),
'file' => 'includes/webform.report.inc',
),
// webform.submissions.inc.
'webform_submission' => array(
'render element' => 'renderable',
'template' => 'templates/webform-submission',
'pattern' => 'webform_submission_[0-9]+',
'file' => 'includes/webform.submissions.inc',
),
'webform_submission_page' => array(
'variables' => array(
'node' => NULL,
'submission' => NULL,
'submission_content' => NULL,
'submission_navigation' => NULL,
'submission_information' => NULL,
'submission_actions' => NULL,
'mode' => NULL,
),
'template' => 'templates/webform-submission-page',
'file' => 'includes/webform.submissions.inc',
),
'webform_submission_information' => array(
'variables' => array(
'node' => NULL,
'submission' => NULL,
'mode' => 'display',
),
'template' => 'templates/webform-submission-information',
'file' => 'includes/webform.submissions.inc',
),
'webform_submission_navigation' => array(
'variables' => array(
'node' => NULL,
'submission' => NULL,
'mode' => NULL,
),
'template' => 'templates/webform-submission-navigation',
'file' => 'includes/webform.submissions.inc',
),
'webform_submission_resend' => array(
'render element' => 'form',
'file' => 'includes/webform.submissions.inc',
),
);
// Theme functions in all components.
$components = webform_components(TRUE);
foreach ($components as $type => $component) {
if ($theme_additions = webform_component_invoke($type, 'theme')) {
$theme = array_merge($theme, $theme_additions);
}
}
return $theme;
}