function feeds_page_access in Feeds 7
Same name and namespace in other branches
- 8.2 feeds.module \feeds_page_access()
- 6 feeds.module \feeds_page_access()
- 7.2 feeds.module \feeds_page_access()
Menu access callback.
Related topics
1 string reference to 'feeds_page_access'
- feeds_menu in ./
feeds.module - Implements hook_menu().
File
- ./
feeds.module, line 273 - 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;
}