function scald_atom_actions_available in Scald: Media Management made easy 7
Builds an array of action available for a given atom.
4 calls to scald_atom_actions_available()
- mee_ajax_widget_expand in modules/
fields/ mee/ mee.module - Ajax callback: returns the expanded HTML atom widget.
- scald_atom_fetch_atoms in includes/
scald.pages.inc - Fetch atoms and return in JSON format.
- scald_dnd_library_add_item in modules/
library/ scald_dnd_library/ scald_dnd_library.module - Adds an item in the library array.
- scald_render in ./
scald.module - Render a Scald Atom.
File
- ./
scald.module, line 2673 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function scald_atom_actions_available($atom, $account = NULL) {
$actions = array();
foreach (scald_actions() as $action => $details) {
if (scald_action_permitted($atom, $action, $account)) {
$actions[$action] = $details;
}
}
return $actions;
}