function recipe_export_multi_myaccess in Recipe 7
Same name and namespace in other branches
- 7.2 recipe.module \recipe_export_multi_myaccess()
Extends user_access to handle the case where no export formats are available.
1 string reference to 'recipe_export_multi_myaccess'
- recipe_menu in ./
recipe.module - Implements hook_menu().
File
- ./
recipe.module, line 1762 - Contains functions for Recipe node CRUD and display.
Code
function recipe_export_multi_myaccess($string, $account = NULL, $reset = FALSE) {
// short circuit if there are no parsers available.
$formats = module_invoke_all('recipeio', 'export_multi');
if (count($formats) == 0) {
return FALSE;
}
// we have a format so continue to user_access
return user_access($string, $account, $reset);
}