ga_login_test.install in Google Authenticator login 7
ga_login_test module.
File
tests/ga_login_test/ga_login_test.installView source
<?php
/**
* @file
* ga_login_test module.
*/
/**
* Implements hook_enable().
*
* Needed because simpletest enables the module in the same request.
*/
function ga_login_test_enable() {
global $drupal_hash_salt, $databases;
if (empty($drupal_hash_salt)) {
$clone = $databases;
$clone['default']['default']['prefix'] = "";
$drupal_hash_salt = hash('sha256', serialize($clone));
}
}Functions
|
Name |
Description |
|---|---|
| ga_login_test_enable | Implements hook_enable(). |