protected function ScaldWebTestCase::deleteAtomAction in Scald: Media Management made easy 7
Delete an action bit.
1 call to ScaldWebTestCase::deleteAtomAction()
- ScaldAtomEntityTestCase::testScaldAtomPermissions in tests/
scald.test - Permission tests.
File
- tests/
scald.test, line 79 - Tests for scald.module.
Class
- ScaldWebTestCase
- Defines a base class for testing the Scald module.
Code
protected function deleteAtomAction($atom, $action_name) {
$actions = scald_actions();
$atom->actions &= ~$actions[$action_name]['bitmask'];
scald_atom_save($atom);
$atom = scald_fetch($atom->sid, TRUE);
}