function scald_quickstart_install in Scald: Media Management made easy 7
Implements hook_install().
File
- modules/
scald_quickstart/ scald_quickstart.install, line 14 - Scald Quickstart Installation
Code
function scald_quickstart_install() {
// Grant anoymous and authenticated user the rights to see published atoms.
$rids = array(
DRUPAL_ANONYMOUS_RID,
DRUPAL_AUTHENTICATED_RID,
);
foreach ($rids as $rid) {
user_role_change_permissions($rid, array(
'fetch any atom' => TRUE,
'view any atom' => TRUE,
));
cache_clear_all('scald_actions_bitstring_for_rid_' . $rid, 'cache_scald');
}
}