function features_theme in Features 6
Same name and namespace in other branches
- 7.2 features.module \features_theme()
- 7 features.module \features_theme()
Implementation of hook_theme().
File
- ./
features.module, line 174 - Module file for the features module, which enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together statisfy a certain use-case.
Code
function features_theme() {
$base = array(
'path' => drupal_get_path('module', 'features') . '/theme',
'file' => 'theme.inc',
);
$items = array();
$items['features_components'] = $items['features_component_key'] = $items['features_component_list'] = $items['features_form_buttons'] = $items['features_form_components'] = $items['features_form_export'] = $items['features_form_package'] = $items['features_module_status'] = $items['features_storage_link'] = $base;
$items['features_admin_components'] = array(
'arguments' => array(
'form' => NULL,
),
'template' => 'features-admin-components',
) + $base;
$items['features_form'] = array(
'arguments' => array(
'form' => NULL,
),
'template' => 'features-form',
) + $base;
return $items;
}