You are here

function defaultcontent_features_api in Default Content 7

Same name and namespace in other branches
  1. 7.2 defaultcontent.module \defaultcontent_features_api()

Implementats hook_features_api().

we define the node_content type of export

File

./defaultcontent.module, line 366
Module file for the Default content module which allow export and import of default content in a Drupal site.

Code

function defaultcontent_features_api() {
  return array(
    'content' => array(
      'name' => t('Content Item'),
      'default_hook' => 'content_defaults',
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
      'features_source' => TRUE,
      'file' => drupal_get_path('module', 'defaultcontent') . '/defaultcontent.features.inc',
    ),
    'content_menu_links' => array(
      'name' => t('Content Menu links'),
      'default_hook' => 'content_menu_links_defaults',
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
      'features_source' => TRUE,
      'file' => drupal_get_path('module', 'defaultcontent') . '/defaultcontent.features.inc',
    ),
  );
}