Commit cb503af3 authored by Oliver Davies's avatar Oliver Davies
Browse files

#2322273 Added field_areas_of_expertise

parent 4fb5e7f4
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -10,6 +10,40 @@
function drupalorg_user_field_default_field_bases() {
  $field_bases = array();

  // Exported field_base: 'field_areas_of_expertise'
  $field_bases['field_areas_of_expertise'] = array(
    'active' => 1,
    'cardinality' => -1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_areas_of_expertise',
    'foreign keys' => array(
      'tid' => array(
        'columns' => array(
          'tid' => 'tid',
        ),
        'table' => 'taxonomy_term_data',
      ),
    ),
    'indexes' => array(
      'tid' => array(
        0 => 'tid',
      ),
    ),
    'locked' => 0,
    'module' => 'taxonomy',
    'settings' => array(
      'allowed_values' => array(
        0 => array(
          'vocabulary' => 'areas_of_expertise',
          'parent' => 0,
        ),
      ),
    ),
    'translatable' => 0,
    'type' => 'taxonomy_term_reference',
  );

  // Exported field_base: 'field_bio'
  $field_bases['field_bio'] = array(
    'active' => 1,
+37 −1
Original line number Diff line number Diff line
@@ -114,6 +114,40 @@ function drupalorg_user_field_default_field_instances() {
    ),
  );

  // Exported field_instance: 'user-user-field_areas_of_expertise'
  $field_instances['user-user-field_areas_of_expertise'] = array(
    'bundle' => 'user',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => 'Please provide a comma-separated list of your areas of Drupal expertise, e.g. module development, theming, site building, marketing, etc.',
    'display' => array(
      'default' => array(
        'label' => 'above',
        'module' => 'taxonomy',
        'settings' => array(),
        'type' => 'taxonomy_term_reference_link',
        'weight' => 19,
      ),
    ),
    'entity_type' => 'user',
    'field_name' => 'field_areas_of_expertise',
    'label' => 'Areas of Expertise',
    'required' => 0,
    'settings' => array(
      'user_register_form' => 0,
    ),
    'widget' => array(
      'active' => 0,
      'module' => 'taxonomy',
      'settings' => array(
        'autocomplete_path' => 'taxonomy/autocomplete',
        'size' => 60,
      ),
      'type' => 'taxonomy_autocomplete',
      'weight' => 12,
    ),
  );

  // Exported field_instance: 'user-user-field_bio'
  $field_instances['user-user-field_bio'] = array(
    'bundle' => 'user',
@@ -178,7 +212,7 @@ function drupalorg_user_field_default_field_instances() {
        'rows' => 5,
      ),
      'type' => 'text_textarea',
      'weight' => 11,
      'weight' => 13,
    ),
  );

@@ -528,6 +562,7 @@ function drupalorg_user_field_default_field_instances() {

  // Translatables
  // Included for use with string extractors like potx.
  t('Areas of Expertise');
  t('Bio');
  t('Country');
  t('Current');
@@ -545,6 +580,7 @@ function drupalorg_user_field_default_field_instances() {
  t('Organization');
  t('Organizations');
  t('Please include a short blurb about yourself to let us know who you are outside of Drupal.');
  t('Please provide a comma-separated list of your areas of Drupal expertise, e.g. module development, theming, site building, marketing, etc.');
  t('Please provide an overview of your Drupal contributions. These could be modules that you have created or maintain, user groups that you organize, volunteering at events, or other contributions.');
  t('Select one or more languages you speak.');
  t('The nickname you use on various channels of irc.freenode.net');
+8 −0
Original line number Diff line number Diff line
@@ -9,6 +9,14 @@
 */
function drupalorg_user_taxonomy_default_vocabularies() {
  return array(
    'areas_of_expertise' => array(
      'name' => 'Areas of Expertise',
      'machine_name' => 'areas_of_expertise',
      'description' => '',
      'hierarchy' => 0,
      'module' => 'taxonomy',
      'weight' => 0,
    ),
    'interests' => array(
      'name' => 'Interests',
      'machine_name' => 'interests',
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ function drupalorg_user_field_group_info() {
    'weight' => '4',
    'children' => array(
      0 => 'field_contributions',
      1 => 'field_areas_of_expertise',
    ),
    'format_type' => 'fieldset',
    'format_settings' => array(
+3 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ dependencies[] = url
datestamp = 1414621847
features[ctools][] = field_group:field_group:1
features[features_api][] = api:2
features[field_base][] = field_areas_of_expertise
features[field_base][] = field_bio
features[field_base][] = field_country
features[field_base][] = field_current
@@ -45,6 +46,7 @@ features[field_group][] = group_user_work|user|user|form
features[field_instance][] = field_collection_item-field_organizations-field_current
features[field_instance][] = field_collection_item-field_organizations-field_job_title
features[field_instance][] = field_collection_item-field_organizations-field_organization_name
features[field_instance][] = user-user-field_areas_of_expertise
features[field_instance][] = user-user-field_bio
features[field_instance][] = user-user-field_contributions
features[field_instance][] = user-user-field_country
@@ -58,6 +60,7 @@ features[field_instance][] = user-user-field_organizations
features[field_instance][] = user-user-field_user_geolocation
features[field_instance][] = user-user-field_websites
features[image][] = drupalorg_user_picture
features[taxonomy][] = areas_of_expertise
features[taxonomy][] = interests
features_exclude[field_base][field_current_company_org] = field_current_company_org
features_exclude[field_instance][user-user-field_current_company_org] = user-user-field_current_company_org