Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
315
Merge Requests
315
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
f0006574
Commit
f0006574
authored
Jan 18, 2010
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#687578
by agentrickard: remove access check from aggregator_categorize_items().
parent
a0135d7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
modules/aggregator/aggregator.pages.inc
modules/aggregator/aggregator.pages.inc
+0
-11
No files found.
modules/aggregator/aggregator.pages.inc
View file @
f0006574
...
...
@@ -146,12 +146,10 @@ function _aggregator_page_list($items, $op, $feed_source = '') {
* @return
* The form structure.
* @ingroup forms
* @see aggregator_categorize_items_validate()
* @see aggregator_categorize_items_submit()
*/
function
aggregator_categorize_items
(
$items
,
$feed_source
=
''
)
{
$form
[
'#submit'
][]
=
'aggregator_categorize_items_submit'
;
$form
[
'#validate'
][]
=
'aggregator_categorize_items_validate'
;
$form
[
'#theme'
]
=
'aggregator_categorize_items'
;
$form
[
'feed_source'
]
=
array
(
'#value'
=>
$feed_source
,
...
...
@@ -190,15 +188,6 @@ function aggregator_categorize_items($items, $feed_source = '') {
return
$form
;
}
/**
* Validate aggregator_categorize_items() form submissions.
*/
function
aggregator_categorize_items_validate
(
$form
,
&
$form_state
)
{
if
(
!
user_access
(
'administer news feeds'
))
{
form_error
(
$form
,
t
(
'You are not allowed to categorize this feed item.'
));
}
}
/**
* Process aggregator_categorize_items() form submissions.
*/
...
...
Write
Preview
Markdown
is supported
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