You are here

farm_group.features.inc in farmOS 7

File

modules/farm/farm_group/farm_group.features.inc
View source
<?php

/**
 * @file
 * farm_group.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function farm_group_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "field_group" && $api == "field_group") {
    return array(
      "version" => "1",
    );
  }
}

/**
 * Implements hook_views_api().
 */
function farm_group_views_api($module = NULL, $api = NULL) {
  return array(
    "api" => "3.0",
  );
}

/**
 * Implements hook_default_farm_asset_type().
 */
function farm_group_default_farm_asset_type() {
  $items = array();
  $items['group'] = entity_import('farm_asset_type', '{ "type" : "group", "label" : "Group", "weight" : 0, "rdf_mapping" : [] }');
  return $items;
}

Functions

Namesort descending Description
farm_group_ctools_plugin_api Implements hook_ctools_plugin_api().
farm_group_default_farm_asset_type Implements hook_default_farm_asset_type().
farm_group_views_api Implements hook_views_api().