You are here

function scald_action_bitmask_to_array in Scald: Media Management made easy 7

Converts actions bitmask to array of action machine names.

Deprecated

This function is no longer used in core.

File

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

Code

function scald_action_bitmask_to_array($bitmask) {
  $names = array();
  foreach (scald_actions() as $name => $action) {
    if ($action['bitmask'] & $bitmask) {
      $names[] = $name;
    }
  }
  return $names;
}