You are here

function hook_features_template_info in Features Items Template 7

RETURN an array of datum array that tell features template how and what items to make. they each have the following properties plugin: what features template template plugin to use template: where is the template that should be used to construct components deleted: if marked true then features template will insure that the component is removed. PLUGIN Variables: Other items that are used by the plugin( e.g. the field_instance plugin uses entity_type, buindle_type an field)

2 invocations of hook_features_template_info()
features_template_infos in ./features_template.module
Invoke hook_feature_templete_info()
features_template_modules_enabled in ./features_template.module
Implements hook_modules_enabled().

File

./features_template.api.php, line 18
API info for features template module

Code

function hook_features_template_info() {
  $content_types = variable_get('mymodule_content_types_to_index', array());
  $data = array();
  foreach ($content_types as $content_type => $present) {
    $data[] = array(
      'plugin' => 'field_instance',
      'template' => 'mymodule_search_field_author_default_field_instances_template',
      'deleted' => !empty($present),
      'entity_type' => 'node',
      'bundle_type' => $content_type,
      'field' => 'field_author',
    );
  }
  return $data;
}