Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
project
Commits
810bace1
Commit
810bace1
authored
May 04, 2020
by
drumm
Browse files
Issue
#3133614
: Remove download count fields
parent
4ffd05f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
release/includes/project_release_node_type.inc
View file @
810bace1
...
...
@@ -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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment