Commit f0006574 authored by Dries's avatar Dries

- Patch #687578 by agentrickard: remove access check from aggregator_categorize_items().

parent a0135d7b
...@@ -146,12 +146,10 @@ function _aggregator_page_list($items, $op, $feed_source = '') { ...@@ -146,12 +146,10 @@ function _aggregator_page_list($items, $op, $feed_source = '') {
* @return * @return
* The form structure. * The form structure.
* @ingroup forms * @ingroup forms
* @see aggregator_categorize_items_validate()
* @see aggregator_categorize_items_submit() * @see aggregator_categorize_items_submit()
*/ */
function aggregator_categorize_items($items, $feed_source = '') { function aggregator_categorize_items($items, $feed_source = '') {
$form['#submit'][] = 'aggregator_categorize_items_submit'; $form['#submit'][] = 'aggregator_categorize_items_submit';
$form['#validate'][] = 'aggregator_categorize_items_validate';
$form['#theme'] = 'aggregator_categorize_items'; $form['#theme'] = 'aggregator_categorize_items';
$form['feed_source'] = array( $form['feed_source'] = array(
'#value' => $feed_source, '#value' => $feed_source,
...@@ -190,15 +188,6 @@ function aggregator_categorize_items($items, $feed_source = '') { ...@@ -190,15 +188,6 @@ function aggregator_categorize_items($items, $feed_source = '') {
return $form; 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. * Process aggregator_categorize_items() form submissions.
*/ */
......
Markdown is supported
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