function simplelogin_preprocess_html in SimpleLogin 7
Same name and namespace in other branches
- 8.6 simplelogin.module \simplelogin_preprocess_html()
Implements hook_preprocess_html().
File
- ./
simplelogin.module, line 33 - The Login screens, which controls the customized background image.
Code
function simplelogin_preprocess_html(&$variables) {
$path = drupal_get_path_alias();
$user_path = array(
'user',
'user/login',
'user/password',
'user/register',
);
if (in_array($path, $user_path)) {
$variables['classes_array'][] = 'simplelogin';
}
}