1 installer.module installer_install_action_access()

Access callback used for pages that directly execute an installer action.

This extends installer_install_access() to also check for a valid query string token. This is used for pages that directly execute an installer action, such as the reset and install pages.

Return value

bool: TRUE if the current user can access the installer menu items; FALSE otherwise.

See also

installer_menu()

File

core/modules/installer/installer.module, line 173
Handles installation and updates of contributed projects.

Code

function installer_install_action_access() {
  $valid_token = isset($_GET['token']) && backdrop_valid_token($_GET['token'], 'installer_install_action_access');
  return installer_install_access() && $valid_token;
}