You are here

function hook_scald_render_options_alter in Scald: Media Management made easy 7

Handles the render options when it is not a JSON string.

In the old version of Scald, $options could be a simple string. But modern implementation requires it to be a JSON string to interact with $options as an array. This hook gives modules a chance to convert that simple string into an array.

@codingStandardsIgnoreStart

Parameters

array $options: The $options array to be updated. The original options string is stored at $options['option'].

ScaldAtom $atom: The atom used in render.

string $context: The context used in render.

1 invocation of hook_scald_render_options_alter()
scald_render in ./scald.module
Render a Scald Atom.

File

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

Code

function hook_scald_render_options_alter(&$options, &$atom, &$context) {

  // @codingStandardsIgnoreEnd
}