function activity_access_batch_set in Activity 7
Same name and namespace in other branches
- 6.2 activity.admin.inc \activity_access_batch_set()
FAPI form submit function for the activity_rebuild button.
Parameters
array $form: The FAPI form structure array.
array &$form_state: The FAPI form state array.
Return value
none
1 string reference to 'activity_access_batch_set'
- activity_settings_form in ./
activity.admin.inc - Form builder to dispaly settings for activity module
File
- ./
activity.admin.inc, line 393 - activity.admin.inc Contains administrative forms for activity.module
Code
function activity_access_batch_set($form, &$form_state) {
// Address usability concern where the realms arn't set.
$submitted_realms = array_filter($form_state['values']['activity_access_realms']);
variable_set('activity_access_realms', $submitted_realms);
$batch = array(
'title' => t('Rebuilding Activity Access Table'),
'operations' => array(
array(
'activity_batch_access_rebuild_process',
array(),
),
),
'file' => drupal_get_path('module', 'activity') . '/activity.batch.inc',
);
batch_set($batch);
$form_state['redirect'] = 'admin/config/content/activity';
}