function batch_perm

6.x batch.module batch_perm()
5.x batch.module batch_perm()

Implementation of hook_perm

File

modules/batch/batch.module, line 380

Code

function batch_perm() {

  $perms = array(
    "batch_run_test" => array(
      "title" => t("Run test batch function"),
      "description" => t("This is only useful for developers.  It allows a user to execute a test batch process by visiting example.com/batch-test-form in their browser."),
      "admin_restricted" => TRUE, // means only appears for admin (user_id == 1)
    ),
  );

  return $perms;
}