You are here

function hook_scald_register_atom in Scald: Media Management made easy 7

Respond to atom insertion.

This hook is only invoked for the module providing the atom type or atom after atom creation.

@codingStandardsIgnoreStart

Parameters

ScaldAtom $atom: The atom being created.

string $mode: Role of the callee function. Can have the following values:

  • "type" (not really, as we don't have type provider now).
  • "atom".
1 function implements hook_scald_register_atom()

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

scald_image_scald_register_atom in modules/providers/scald_image/scald_image.module
Implements hook_scald_register_atom().

File

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

Code

function hook_scald_register_atom($atom, $mode) {

  // @codingStandardsIgnoreEnd
}