You are here

function feeds_perm in Feeds 6

Implementation of hook_perm().

Related topics

File

./feeds.module, line 129
Feeds - basic API functions and hook implementations.

Code

function feeds_perm() {
  $perms = array(
    'administer feeds',
  );
  foreach (feeds_importer_load_all() as $importer) {
    $perms[] = 'import ' . $importer->id . ' feeds';
    $perms[] = 'clear ' . $importer->id . ' feeds';
  }
  return $perms;
}