You are here

function scald_actions in Scald: Media Management made easy 7

Same name and namespace in other branches
  1. 6 scald.module \scald_actions()

Get the available Scald Actions.

This function returns a structured array which specifies all the currently provided Scald Actions. The actions are in an array with one or more elements in the format: array( 'action-slug' => array( 'provider' => 'provider-name', 'title' => 'Plain-text title', 'mask' => 0x04, ), .. );

Return value

array The Scald Actions array.

19 calls to scald_actions()
ScaldWebTestCase::addAtomAction in tests/scald.test
Add an action bit.
ScaldWebTestCase::deleteAtomAction in tests/scald.test
Delete an action bit.
scald_action_bitmask_to_array in ./scald.module
Converts actions bitmask to array of action machine names.
scald_action_permitted in ./scald.module
Determines if a given User can act on a given Atom in a given way.
scald_admin_type_form in includes/scald.admin.inc
Form for admin settings for Scald Types.

... See full list

2 string references to 'scald_actions'
scald_atom_add_form_options in includes/scald.pages.inc
Options form.
scald_update_7000 in ./scald.install
Updates the schema from the 6.x version.

File

./scald.module, line 188
The Scald Core, which handles all Scald Registries and dispatch.

Code

function scald_actions($reset = FALSE) {
  return _scald_get_info('actions', $reset);
}