You are here

pmteam.field_instance.inc in Drupal PM (Project Management) 7.2

Field instance definitions for the PM Team module.

File

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

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

/**
 * Implements hook_field_default_field_instances().
 */
function pmteam_default_field_instances() {
  $field_instances = array();

  // Exported field_instance: 'node-pmteam-body'
  $field_instances['node-pmteam-body'] = array(
    'bundle' => 'pmteam',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => array(
      'default' => array(
        'label' => 'hidden',
        'module' => 'text',
        'settings' => array(),
        'type' => 'text_default',
        'weight' => 0,
      ),
      'teaser' => array(
        'label' => 'hidden',
        'module' => 'text',
        'settings' => array(
          'trim_length' => 600,
        ),
        'type' => 'text_summary_or_trimmed',
        'weight' => 0,
      ),
    ),
    'entity_type' => 'node',
    'field_name' => 'body',
    'label' => 'Description',
    'required' => FALSE,
    'settings' => array(
      'display_summary' => TRUE,
      'text_processing' => 1,
      'user_register_form' => FALSE,
    ),
    'widget' => array(
      'module' => 'text',
      'settings' => array(
        'rows' => 20,
        'summary_rows' => 5,
      ),
      'type' => 'text_textarea_with_summary',
      'weight' => 3,
    ),
  );

  // Exported field_instance: 'node-pmteam-pmteam_user'
  $field_instances['node-pmteam-pmteam_user'] = array(
    'bundle' => 'pmteam',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => 'Select the users who belongs to the team',
    'display' => array(
      'default' => array(
        'label' => 'inline',
        'module' => 'entityreference',
        'settings' => array(
          'link' => FALSE,
        ),
        'type' => 'entityreference_label',
        'weight' => 1,
      ),
      'teaser' => array(
        'label' => 'inline',
        'settings' => array(),
        'type' => 'hidden',
        'weight' => 0,
      ),
    ),
    'entity_type' => 'node',
    'field_name' => 'pmteam_user',
    'label' => 'Members',
    'required' => 0,
    'settings' => array(
      'behaviors' => array(
        'pmteam_user_instance_behavior' => array(
          'status' => 1,
        ),
      ),
      'user_register_form' => FALSE,
    ),
    'widget' => array(
      'active' => 1,
      'module' => 'options',
      'settings' => array(),
      'type' => 'options_select',
      'weight' => 1,
    ),
  );

  // Exported field_instance: 'node-pmteam-pmteam_organization'
  $field_instances['node-pmteam-pmteam_organization'] = array(
    'bundle' => 'pmteam',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => 'Assigns all users from the selected organization to the team',
    'display' => array(
      'default' => array(
        'label' => 'inline',
        'module' => 'entityreference',
        'settings' => array(
          'link' => FALSE,
        ),
        'type' => 'entityreference_label',
        'weight' => 2,
      ),
      'teaser' => array(
        'label' => 'inline',
        'settings' => array(),
        'type' => 'hidden',
        'weight' => 0,
      ),
    ),
    'entity_type' => 'node',
    'field_name' => 'pmteam_organization',
    'label' => 'Organization',
    'required' => 0,
    'settings' => array(
      'user_register_form' => FALSE,
    ),
    'widget' => array(
      'active' => 1,
      'module' => 'options',
      'settings' => array(),
      'type' => 'options_select',
      'weight' => 2,
    ),
  );

  // Translatables
  // Included for use with string extractors like potx.
  t('Assigns all users from the selected organization to the team');
  t('Description');
  t('Members');
  t('Organization');
  t('Select the users who belongs to the team');
  return $field_instances;
}

Functions

Namesort descending Description
pmteam_default_field_instances Implements hook_field_default_field_instances().