Commit 810bace1 authored by drumm's avatar drumm
Browse files

Issue #3133614: Remove download count fields

parent 4ffd05f7
......@@ -878,60 +878,6 @@ function _project_release_create_release_node_type() {
'bundle' => 'field_release_files',
));
// Number of times this file has been downloaded. This value is updated by
// site specific means.
field_create_field(array(
'translatable' => '0',
'settings' => array(),
'field_name' => 'field_release_file_downloads',
'type' => 'number_integer',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
));
field_create_instance(array(
'label' => $t('Release file downloads'),
'widget' => array(
'weight' => '3',
'type' => 'field_extrawidgets_hidden',
'active' => 1,
'settings' => array(
'formatter' => 'number_integer',
'formatter_settings' => array(
'thousand_separator' => ',',
'prefix_suffix' => 0,
),
'display_empty' => 0,
),
),
'settings' => array(
'min' => '0',
'max' => '',
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'number_integer',
'weight' => '2',
'settings' => array(
'thousand_separator' => ',',
'prefix_suffix' => 1,
'decimal_separator' => '.',
'scale' => 0,
),
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_release_file_downloads',
'entity_type' => 'field_collection_item',
'bundle' => 'field_release_files',
));
// Toggle for showing a release in a download table.
field_create_field(array(
'translatable' => '0',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment