You are here

function feeds_page_access in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_page_access()
  2. 6 feeds.module \feeds_page_access()
  3. 7 feeds.module \feeds_page_access()

Menu access callback.

Return value

bool True if access is granted. False otherwise.

Related topics

1 call to feeds_page_access()
feeds_menu_local_tasks_alter in ./feeds.module
Implements hook_menu_local_tasks_alter().
1 string reference to 'feeds_page_access'
feeds_menu in ./feeds.module
Implements hook_menu().

File

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

Code

function feeds_page_access() {
  if (user_access('administer feeds')) {
    return TRUE;
  }
  foreach (feeds_enabled_importers() as $id) {
    if (user_access("import {$id} feeds")) {
      return TRUE;
    }
  }
  return FALSE;
}