You are here

function scald_permissions_submit in Scald: Media Management made easy 7

Handles the permissions form submission.

1 string reference to 'scald_permissions_submit'
scald_form_user_admin_permissions_alter in ./scald.module
Implements hook_form_FORM_ID_alter().

File

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

Code

function scald_permissions_submit($form, &$form_state) {

  // Recompute actions bitstrings for all Drupal roles.
  foreach (user_roles() as $rid => $role_name) {
    scald_compute_role_actions(array(
      $rid => $role_name,
    ));
  }
}