function _webform_theme_component in Webform 6.3
Same name and namespace in other branches
- 7.4 webform.api.php \_webform_theme_component()
- 7.3 webform.api.php \_webform_theme_component()
Module specific instance of hook_theme().
This allows each Webform component to add information into hook_theme(). If you specify a file to include, you must define the path to the module that this file belongs to.
Related topics
File
- ./
webform.api.php, line 770 - Sample hooks demonstrating usage in Webform.
Code
function _webform_theme_component() {
return array(
'webform_grid' => array(
'arguments' => array(
'grid_element' => NULL,
),
'file' => 'components/grid.inc',
'path' => drupal_get_path('module', 'webform'),
),
'webform_display_grid' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'components/grid.inc',
'path' => drupal_get_path('module', 'webform'),
),
);
}