Skip to content
Snippets Groups Projects
Commit d8e9092e authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

Issue #3388668: Remove remaining packaging allowlist code

parent 70e95302
No related branches found
No related tags found
2 merge requests!312Issue # 3494493: Documentation: Document Maintainer Widget,!299Remove heroes from components field. Update CTA section and add variants.
Showing with 0 additions and 394 deletions
<?php
/**
* @file
* drupalorg_packaging_whitelist.features.field_base.inc
*/
/**
* Implements hook_field_default_field_bases().
*/
function drupalorg_packaging_whitelist_field_default_field_bases() {
$field_bases = array();
// Exported field_base: 'taxonomy_vocabulary_58'.
$field_bases['taxonomy_vocabulary_58'] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'taxonomy_vocabulary_58',
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'locked' => 0,
'module' => 'taxonomy',
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'vocabulary_58',
'parent' => 0,
),
),
'required' => FALSE,
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
);
return $field_bases;
}
<?php
/**
* @file
* drupalorg_packaging_whitelist.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function drupalorg_packaging_whitelist_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-packaging_whitelist-body'.
$field_instances['node-packaging_whitelist-body'] = array(
'bundle' => 'packaging_whitelist',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => -4,
),
'issuemetadata' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => -4,
),
'map_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'nodechanges' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => -4,
),
'related_content' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'trim_length' => 1400,
'type' => 'text_summary_or_trimmed',
'weight' => -4,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Allowed URL filters',
'required' => 0,
'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' => -4,
),
);
// Exported field_instance: 'node-packaging_whitelist-taxonomy_vocabulary_58'.
$field_instances['node-packaging_whitelist-taxonomy_vocabulary_58'] = array(
'bundle' => 'packaging_whitelist',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 10,
),
'issuemetadata' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'map_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'nodechanges' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'related_content' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 10,
),
),
'entity_type' => 'node',
'field_name' => 'taxonomy_vocabulary_58',
'label' => 'License',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 0,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Allowed URL filters');
t('License');
return $field_instances;
}
<?php
/**
* @file
* drupalorg_packaging_whitelist.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function drupalorg_packaging_whitelist_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function drupalorg_packaging_whitelist_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function drupalorg_packaging_whitelist_node_info() {
$items = array(
'packaging_whitelist' => array(
'name' => t('Packaging allowlist entry'),
'base' => 'node_content',
'description' => t('Define white-listed URLs for external code that can be packaged in install profiles.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => t('<em>Title</em> is a human readable identifier for the allowlist entry. <em>Allowed URL filters</em> is a newline separated list of Perl-compatible regular expressions; all URLs which match these regular expressions are permitted by the packaging script, eg. <em>^http://www\.example\.com/downloads/.+$</em>'),
),
);
drupal_alter('node_info', $items);
return $items;
}
<?php
/**
* @file
* drupalorg_packaging_whitelist.features.taxonomy.inc
*/
/**
* Implements hook_taxonomy_default_vocabularies().
*/
function drupalorg_packaging_whitelist_taxonomy_default_vocabularies() {
return array(
'vocabulary_58' => array(
'name' => 'License',
'machine_name' => 'vocabulary_58',
'description' => '',
'hierarchy' => 0,
'module' => 'features_license',
'weight' => 0,
),
);
}
name = Drupal.org Packaging Whitelist
description = Provide content type and views for packaging whitelist feature.
core = 7.x
package = Features
version = 7.x-3.x-dev
project = drupalorg
dependencies[] = ctools
dependencies[] = drupalorg_marketplace
dependencies[] = features
dependencies[] = options
dependencies[] = search
dependencies[] = strongarm
dependencies[] = taxonomy
dependencies[] = text
datestamp = 1703266784
features[ctools][] = strongarm:strongarm:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = taxonomy_vocabulary_58
features[field_instance][] = node-packaging_whitelist-body
features[field_instance][] = node-packaging_whitelist-taxonomy_vocabulary_58
features[node][] = packaging_whitelist
features[taxonomy][] = vocabulary_58
features[variable][] = comment_default_mode_packaging_whitelist
features[variable][] = comment_packaging_whitelist
features[variable][] = comment_preview_packaging_whitelist
features[variable][] = menu_options_packaging_whitelist
features[variable][] = menu_parent_packaging_whitelist
features[variable][] = node_options_packaging_whitelist
features[variable][] = node_preview_packaging_whitelist
features[variable][] = node_submitted_packaging_whitelist
features_exclude[field_base][body] = body
<?php
/**
* Implementation of hook_install().
*/
function drupalorg_packaging_whitelist_install() {
// Set up variable for our content type
variable_set('content_extra_weights_packaging_whitelist', array(
'title' => '-5',
'revision_information' => '-2',
'author' => '-1',
'options' => '0',
'comment_settings' => '2',
'menu' => '-3',
'path' => '1',
));
variable_set('comment_packaging_whitelist', '0');
variable_set('node_options_packaging_whitelist', array(
0 => 'status',
1 => 'revision',
));
variable_set('upload_packaging_whitelist', '0');
}
<?php
/**
* @file
* Code for the Drupal.org Packaging Whitelist feature.
*/
include_once 'drupalorg_packaging_whitelist.features.inc';
<?php
/**
* @file
* drupalorg_packaging_whitelist.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function drupalorg_packaging_whitelist_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_default_mode_packaging_whitelist';
$strongarm->value = 1;
$export['comment_default_mode_packaging_whitelist'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_packaging_whitelist';
$strongarm->value = '0';
$export['comment_packaging_whitelist'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_preview_packaging_whitelist';
$strongarm->value = 2;
$export['comment_preview_packaging_whitelist'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_options_packaging_whitelist';
$strongarm->value = array(
0 => 'navigation',
);
$export['menu_options_packaging_whitelist'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'menu_parent_packaging_whitelist';
$strongarm->value = 'navigation:0';
$export['menu_parent_packaging_whitelist'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_options_packaging_whitelist';
$strongarm->value = array(
0 => 'status',
1 => 'revision',
2 => 'panelizer',
);
$export['node_options_packaging_whitelist'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_preview_packaging_whitelist';
$strongarm->value = 1;
$export['node_preview_packaging_whitelist'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'node_submitted_packaging_whitelist';
$strongarm->value = 1;
$export['node_submitted_packaging_whitelist'] = $strongarm;
return $export;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment