You are here

function recipe_import_multi_myaccess in Recipe 7

Same name and namespace in other branches
  1. 7.2 recipe.module \recipe_import_multi_myaccess()

Extends user_access to handle the case where no import formats are available.

1 string reference to 'recipe_import_multi_myaccess'
recipe_menu in ./recipe.module
Implements hook_menu().

File

./recipe.module, line 1775
Contains functions for Recipe node CRUD and display.

Code

function recipe_import_multi_myaccess($string, $account = NULL, $reset = FALSE) {

  // short circuit if there are no parsers available.
  $formats = module_invoke_all('recipeio', 'import_multi');
  if (count($formats) == 0) {
    return FALSE;
  }

  // we have a format so continue to user_access
  return user_access($string, $account, $reset);
}