You are here

function opigno_tool_access in Opigno 7

Check user access for the tool.

Parameters

array $tool:

stdClass $account:

Return value

bool

1 call to opigno_tool_access()
opigno_get_tool in ./opigno.module
Fetch information for a specific tool. Optionally, can be filtered by access rights.

File

./opigno.module, line 472
Contains all hook_implementations and module specific API.

Code

function opigno_tool_access($tool, $user = NULL) {
  if ($user == null) {
    global $user;
  }
  return call_user_func_array($tool['access_callback'], array_merge($tool['access_arguments'], array(
    $user,
  )));
}