You are here

pmteam.field_base.inc in Drupal PM (Project Management) 8

Field definitions for the PM Team module.

File

pmteam/includes/pmteam.field_base.inc
View source
<?php

/**
 * @file
 * Field definitions for the PM Team module.
 */

/**
 * Implements hook_field_default_field_bases().
 */
function pmteam_default_field_bases() {
  $field_bases = array();

  // Exported field_base: 'pmteam_user'.
  $field_bases['pmteam_user'] = array(
    'active' => 1,
    'cardinality' => -1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'pmteam_user',
    'indexes' => array(
      'target_id' => array(
        0 => 'target_id',
      ),
    ),
    'locked' => 0,
    'module' => 'entityreference',
    'settings' => array(
      'handler' => 'views',
      'handler_settings' => array(
        'behaviors' => array(
          'views-select-list' => array(
            'status' => 0,
          ),
        ),
        'view' => array(
          'args' => array(),
          'display_name' => 'pm_user_filter',
          'view_name' => 'pm_entity_reference_user_filter',
        ),
      ),
      'target_type' => 'user',
    ),
    'translatable' => 0,
    'type' => 'entityreference',
  );

  // Exported field_base: 'pmteam_organization'
  $field_bases['pmteam_organization'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'pmteam_organization',
    'foreign keys' => array(
      'node' => array(
        'columns' => array(
          'target_id' => 'nid',
        ),
        'table' => 'node',
      ),
    ),
    'indexes' => array(
      'target_id' => array(
        0 => 'target_id',
      ),
    ),
    'locked' => 0,
    'module' => 'entityreference',
    'settings' => array(
      'handler' => 'base',
      'handler_settings' => array(
        'behaviors' => array(
          'views-select-list' => array(
            'status' => 0,
          ),
        ),
        'sort' => array(
          'direction' => 'ASC',
          'property' => 'title',
          'type' => 'property',
        ),
        'target_bundles' => array(
          'pmorganization' => 'pmorganization',
        ),
      ),
      'target_type' => 'node',
    ),
    'translatable' => 0,
    'type' => 'entityreference',
  );
  return $field_bases;
}

Functions

Namesort descending Description
pmteam_default_field_bases Implements hook_field_default_field_bases().