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