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