You are here

function activity_admin_recreate in Activity 7

Page callback to set up a batch process.

Parameters

$action: ActivityActionsHandler to recreate messages for.

1 string reference to 'activity_admin_recreate'
activity_menu in ./activity.module
Implements hook_menu().

File

./activity.admin.inc, line 415
activity.admin.inc Contains administrative forms for activity.module

Code

function activity_admin_recreate(ActivityActionHandler $action) {
  $batch = array(
    'title' => t('Regenerating @label messages', array(
      '@label' => $action->label,
    )),
    'operations' => array(
      array(
        'activity_batch_recreate_messages_step',
        array(
          $action->actions_id,
        ),
      ),
    ),
    'file' => drupal_get_path('module', 'activity') . '/activity.batch.inc',
  );
  batch_set($batch);
  batch_process('admin/structure/activity');
}