You are here

function search_by_page_perm in Search by Page 6

Implementation of hook_perm().

1 call to search_by_page_perm()
SearchByPageEnvironmentTest::setUp in tests/search_by_page.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

File

./search_by_page.module, line 752
Main module file for Drupal module Search by Page.

Code

function search_by_page_perm() {
  $perms = array(
    'administer search by page',
  );
  $envs = search_by_page_list_environments();
  foreach ($envs as $envid) {
    $perms[] = 'search page environment ' . search_by_page_setting_get('environment_name', $envid, t('new'));
  }
  return $perms;
}