You are here

farm_crop.features.taxonomy.inc in farmOS 7

File

modules/farm/farm_crop/farm_crop.features.taxonomy.inc
View source
<?php

/**
 * @file
 * farm_crop.features.taxonomy.inc
 */

/**
 * Implements hook_taxonomy_default_vocabularies().
 */
function farm_crop_taxonomy_default_vocabularies() {
  return array(
    'farm_crop_families' => array(
      'name' => 'Farm Crop Families',
      'machine_name' => 'farm_crop_families',
      'description' => 'A taxonomy of crop families, for organizing crops.',
      'hierarchy' => 0,
      'module' => 'taxonomy',
      'weight' => 0,
      'rdf_mapping' => array(
        'rdftype' => array(
          0 => 'skos:ConceptScheme',
        ),
        'name' => array(
          'predicates' => array(
            0 => 'dc:title',
          ),
        ),
        'description' => array(
          'predicates' => array(
            0 => 'rdfs:comment',
          ),
        ),
      ),
    ),
    'farm_crops' => array(
      'name' => 'Farm Crops/Varieties',
      'machine_name' => 'farm_crops',
      'description' => 'A taxonomy of crops and varieties.',
      'hierarchy' => 1,
      'module' => 'taxonomy',
      'weight' => 0,
      'rdf_mapping' => array(
        'rdftype' => array(
          0 => 'skos:ConceptScheme',
        ),
        'name' => array(
          'predicates' => array(
            0 => 'dc:title',
          ),
        ),
        'description' => array(
          'predicates' => array(
            0 => 'rdfs:comment',
          ),
        ),
      ),
    ),
  );
}

Functions

Namesort descending Description
farm_crop_taxonomy_default_vocabularies Implements hook_taxonomy_default_vocabularies().