function boxes_add_page_access in Boxes 7.2
Access callback for the general boxes add page (block/add).
1 string reference to 'boxes_add_page_access'
- boxes_menu in ./
boxes.module - Implements hook_menu().
File
- ./
boxes.module, line 599
Code
function boxes_add_page_access() {
if (user_access('administer box types') || user_access('administer boxes')) {
return TRUE;
}
foreach (boxes_get_types() as $box_type) {
if (boxes_access('create', $box_type->type)) {
return TRUE;
}
}
return FALSE;
}