Commit 8de74885 authored by Fran Garcia-Linares's avatar Fran Garcia-Linares Committed by Neil Drumm
Browse files

Issue #3265112 by fjgarlin, drumm: Add field_issue_links

parent 1be58fcf
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -237,6 +237,35 @@ function drupalorg_change_notice_field_default_field_bases() {
    'type_name' => 'changenotice',
  );

  // Exported field_base: 'field_issue_links'.
  $field_bases['field_issue_links'] = array(
    'active' => 1,
    'cardinality' => -1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_issue_links',
    'indexes' => array(),
    'locked' => 0,
    'module' => 'link',
    'settings' => array(
      'attributes' => array(
        'class' => '',
        'rel' => '',
        'target' => 'default',
      ),
      'display' => array(
        'url_cutoff' => 80,
      ),
      'enable_tokens' => 1,
      'title' => 'optional',
      'title_maxlength' => 128,
      'title_value' => '',
      'url' => 0,
    ),
    'translatable' => 0,
    'type' => 'link_field',
  );

  // Exported field_base: 'field_issues'.
  $field_bases['field_issues'] = array(
    'active' => 1,
+75 −0
Original line number Diff line number Diff line
@@ -902,6 +902,79 @@ function drupalorg_change_notice_field_default_field_instances() {
    'widget_type' => 'optionwidgets_buttons',
  );

  // Exported field_instance: 'node-changenotice-field_issue_links'.
  $field_instances['node-changenotice-field_issue_links'] = array(
    'bundle' => 'changenotice',
    'default_value' => array(),
    'deleted' => 0,
    'description' => 'URLs for issues linked to this change record. These can be https://www.drupal.org issues or https://git.drupalcode.org issues.',
    'display' => array(
      'default' => array(
        'label' => 'above',
        'module' => 'link',
        'settings' => array(
          'custom_title' => '',
        ),
        'type' => 'link_default',
        'weight' => 4,
      ),
      'map_teaser' => array(
        'label' => 'above',
        'settings' => array(),
        'type' => 'hidden',
        'weight' => 0,
      ),
      'related_content' => array(
        'label' => 'above',
        'settings' => array(),
        'type' => 'hidden',
        'weight' => 0,
      ),
      'teaser' => array(
        'label' => 'above',
        'settings' => array(),
        'type' => 'hidden',
        'weight' => 0,
      ),
    ),
    'entity_type' => 'node',
    'field_name' => 'field_issue_links',
    'label' => 'Issue links',
    'required' => 0,
    'settings' => array(
      'absolute_url' => 1,
      'attributes' => array(
        'class' => 'drupalorg-gitlab-link',
        'configurable_class' => 0,
        'configurable_title' => 0,
        'rel' => '',
        'target' => 'default',
        'title' => '',
      ),
      'convert_aliases' => 0,
      'display' => array(
        'url_cutoff' => 80,
      ),
      'enable_tokens' => 0,
      'rel_remove' => 'default',
      'title' => 'none',
      'title_allowed_values' => '',
      'title_label_use_field_label' => 0,
      'title_maxlength' => 128,
      'title_value' => '',
      'url' => 0,
      'user_register_form' => FALSE,
      'validate_url' => 1,
    ),
    'widget' => array(
      'active' => 0,
      'module' => 'field_extrawidgets',
      'settings' => array(),
      'type' => 'field_extrawidgets_hidden',
      'weight' => 5,
    ),
  );

  // Exported field_instance: 'node-changenotice-field_issues'.
  $field_instances['node-changenotice-field_issues'] = array(
    'bundle' => 'changenotice',
@@ -1889,6 +1962,7 @@ function drupalorg_change_notice_field_default_field_instances() {
  t('Individual module documentation pages (drupal.org/documentation/modules/[module_name]), and other pages within the <a href="http://drupal.org/documentation/administer">Administration Guide</a>, <a href="http://drupal.org/documentation/install">Installation Guide</a>, <a href="http://drupal.org/documentation/structure">Structure Guide</a>, and <a href="http://drupal.org/documentation/build">Site Builders Guide</a>.');
  t('Introduced in branch');
  t('Introduced in version');
  t('Issue links');
  t('Issues');
  t('Module developer documentation');
  t('Online documentation');
@@ -1900,6 +1974,7 @@ function drupalorg_change_notice_field_default_field_instances() {
  t('Review expressions in the <a href="http://drupal.org/project/coder">Coder Review module</a>.');
  t('Theming guide');
  t('Type the title of the issue to enter issues related to this change.');
  t('URLs for issues linked to this change record. These can be https://www.drupal.org issues or https://git.drupalcode.org issues.');
  t('Upgrade routines in the <a href="http://drupal.org/project/coder">Coder Upgrade module</a>');
  t('Use this field to record progress on making the needed updates.');

+4 −0
Original line number Diff line number Diff line
@@ -7,8 +7,10 @@ project = drupalorg
dependencies[] = ctools
dependencies[] = entityreference
dependencies[] = features
dependencies[] = field_extrawidgets
dependencies[] = field_group
dependencies[] = file
dependencies[] = link
dependencies[] = list
dependencies[] = number
dependencies[] = options
@@ -30,6 +32,7 @@ features[field_base][] = field_coder_update_recorded
features[field_base][] = field_description
features[field_base][] = field_examples_recorded
features[field_base][] = field_impacts
features[field_base][] = field_issue_links
features[field_base][] = field_issues
features[field_base][] = field_module_recorded
features[field_base][] = field_online_recorded
@@ -50,6 +53,7 @@ features[field_instance][] = node-changenotice-field_coder_update_recorded
features[field_instance][] = node-changenotice-field_description
features[field_instance][] = node-changenotice-field_examples_recorded
features[field_instance][] = node-changenotice-field_impacts
features[field_instance][] = node-changenotice-field_issue_links
features[field_instance][] = node-changenotice-field_issues
features[field_instance][] = node-changenotice-field_module_recorded
features[field_instance][] = node-changenotice-field_online_recorded
+44 −1
Original line number Diff line number Diff line
@@ -86,9 +86,52 @@ function drupalorg_change_notice_strongarm() {
      'issuemetadata' => array(
        'custom_settings' => FALSE,
      ),
      'teaser' => array(
        'custom_settings' => TRUE,
      ),
      'related_content' => array(
        'custom_settings' => TRUE,
      ),
      'map_teaser' => array(
        'custom_settings' => TRUE,
      ),
      'full' => array(
        'custom_settings' => FALSE,
      ),
      'rss' => array(
        'custom_settings' => FALSE,
      ),
      'search_index' => array(
        'custom_settings' => FALSE,
      ),
      'search_result' => array(
        'custom_settings' => FALSE,
      ),
      'print' => array(
        'custom_settings' => FALSE,
      ),
      'token' => array(
        'custom_settings' => FALSE,
      ),
      'diff_standard' => array(
        'custom_settings' => FALSE,
      ),
    ),
    'extra_fields' => array(
      'form' => array(),
      'form' => array(
        'metatags' => array(
          'weight' => '13',
        ),
        'title' => array(
          'weight' => '0',
        ),
        'path' => array(
          'weight' => '11',
        ),
        'redirect' => array(
          'weight' => '12',
        ),
      ),
      'display' => array(),
    ),
  );