Skip to content
Snippets Groups Projects
Commit c0426510 authored by Alex Barth's avatar Alex Barth
Browse files

Got it wrong the first time.

parent 9f20738f
No related branches found
No related tags found
No related merge requests found
......@@ -123,14 +123,21 @@ function feeds_reschedule($importer_id = NULL) {
*/
function feeds_permission() {
$perms = array(
'administer feeds' => t('Administer Feeds'),
'administer feeds' => array(
'title' => t('Administer Feeds'),
'description' => t('Create, update, delete importers, execute import and delte tasks on feeds.')
),
);
foreach (feeds_importer_load_all() as $importer) {
$perms[] = array(
"import $importer->id feeds" => t('Import @name feeds', array('@name' => $importer->config['name'])),
"import $importer->id feeds" => array(
'title' => t('Import @name feeds', array('@name' => $importer->config['name'])),
),
);
$perms[] = array(
"clear $importer->id feeds" => t('Delete items from @name feeds', array('@name' => $importer->config['name'])),
"clear $importer->id feeds" => array(
'title' => t('Delete items from @name feeds', array('@name' => $importer->config['name'])),
),
);
}
return $perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment