You are here

function features_theme in Features 7

Same name and namespace in other branches
  1. 6 features.module \features_theme()
  2. 7.2 features.module \features_theme()

Implements hook_theme().

File

./features.module, line 182
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_module_status'] = array(
    'variables' => array(
      'module' => null,
      'status' => null,
    ),
  ) + $base;
  $items['features_components'] = array(
    'variables' => array(
      'info' => null,
      'sources' => null,
    ),
  ) + $base;
  $items['features_component_key'] = $base;
  $items['features_component_list'] = array(
    'variables' => array(
      'components' => array(),
      'source' => array(),
      'conflicts' => array(),
    ),
  ) + $base;
  $items['features_storage_link'] = array(
    'variables' => array(
      'storage' => null,
      'text' => null,
      'path' => null,
      'options' => array(),
    ),
  ) + $base;
  $items['features_form_components'] = $items['features_form_export'] = $items['features_form_package'] = array(
    'render element' => 'form',
  ) + $base;
  $items['features_form_buttons'] = array(
    'render element' => 'element',
  ) + $base;
  $items['features_admin_components'] = array(
    'render element' => 'form',
    'template' => 'features-admin-components',
  ) + $base;
  return $items;
}