function _hybridauth_widget_user_login_form_alter in HybridAuth Social Login 7
Adds Engage sign-in link to the form.
2 calls to _hybridauth_widget_user_login_form_alter()
- hybridauth_form_user_login_alter in ./
hybridauth.module - Implements hook_form_FORM_ID_alter().
- hybridauth_form_user_login_block_alter in ./
hybridauth.module - Implements hook_form_FORM_ID_alter().
File
- ./
hybridauth.module, line 159
Code
function _hybridauth_widget_user_login_form_alter(&$form, &$form_state) {
$style = variable_get('hybridauth_widget_attach_loginform_style', HYBRIDAUTH_WIDGET_ATTACH_LOGINFORM_STYLE_DEFAULT);
$form['hybridauth_widget_wrapper'] = array(
'#type' => 'fieldset',
'#title' => variable_get('hybridauth_widget_attach_loginform_wrapper_title', HYBRIDAUTH_WIDGET_ATTACH_LOGINFORM_WRAPPER_TITLE_DEFAULT),
'hybridauth_widget_wrapper' => array(
'#theme' => 'hybridauth_widget',
'#style' => $style,
'#size' => variable_get('hybridauth_widget_attach_loginform_icon_size', HYBRIDAUTH_WIDGET_ATTACH_LOGINFORM_ICON_SIZE_DEFAULT),
'#weight' => variable_get('hybridauth_widget_attach_loginform_weight', 150),
),
);
}