You are here

function activity_batch_access in Activity 6.2

Same name and namespace in other branches
  1. 7 activity.module \activity_batch_access()

Menu Access callback to start a batch regeneration.

Parameters

array $batch: The single batch operation.

string $token: The token generated for this action.aid.

Return value

TRUE/FALSE

1 string reference to 'activity_batch_access'
activity_menu in ./activity.module
Implementation of hook_menu().

File

./activity.module, line 288
Primarily Drupal hooks and global API functions to manipulate activity.

Code

function activity_batch_access($batch, $token) {
  return user_access('administer activity') && drupal_valid_token($token, $batch);
}