function mo_auth_js_alter in Google Authenticator / 2 Factor Authentication - 2FA 7
Implements hook_js_alter(&$javascript).
Stick our JS below user.js because have dependencies on user.js
File
- ./
mo_auth.module, line 736 - Module file for miniOrange 2FA Module.
Code
function mo_auth_js_alter(&$javascript) {
$moOauthModule = drupal_get_path('module', 'mo_auth') . '/includes/js/mo_auth_password.js';
if (isset($javascript['modules/user/user.js']) && isset($javascript[$moOauthModule])) {
$javascript[$moOauthModule]['weight'] = floatval($javascript['modules/user/user.js']) + 0.001;
}
}