You are here

function template_preprocess_hybridauth_widget in HybridAuth Social Login 7.2

Same name and namespace in other branches
  1. 6.2 hybridauth.theme.inc \template_preprocess_hybridauth_widget()
  2. 7 hybridauth.widget.inc \template_preprocess_hybridauth_widget()

Template preprocess function for hybridauth_widget.

File

./hybridauth.theme.inc, line 10
Theme functions for the HybridAuth module.

Code

function template_preprocess_hybridauth_widget(&$vars, $hook) {
  $element = $vars['element'];
  $vars['title'] = filter_xss_admin($element['#title']);
  $vars['providers'] = array();
  foreach ($element['providers'] as $provider) {
    $vars['providers'][] = l(render($provider['text']), $provider['path'], $provider['options']);
  }
}