You are here

function hook_scald_atom_access in Scald: Media Management made easy 7

Control access to an atom.

This hook can be used to grant or deny access for a specific atom and Scald action. It has the following possible return values: SCALD_ATOM_ACCESS_ALLOW SCALD_ATOM_ACCESS_DENY SCALD_ATOM_ACCESS_IGNORE.

@codingStandardsIgnoreStart

Parameters

ScaldAtom $atom: The atom being accessed.

strig $action: The action being requested.

mixed $account: The user object of the current user. This is an optional parameter.

1 function implements hook_scald_atom_access()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

scald_scald_atom_access in ./scald.module
Implements hook_scald_atom_access().
1 invocation of hook_scald_atom_access()
scald_invoke_atom_access in ./scald.module
Invokes the hook_scald_atom_access() and collects the results.

File

./scald.api.php, line 439
Hooks related to Scald atoms and providers.

Code

function hook_scald_atom_access($atom, $action, $account = NULL) {

  // @codingStandardsIgnoreEnd
}