function _hybridauth_add_icon_pack_files in HybridAuth Social Login 6.2
Same name and namespace in other branches
- 7.2 hybridauth.module \_hybridauth_add_icon_pack_files()
2 calls to _hybridauth_add_icon_pack_files()
- template_preprocess_hybridauth_provider_icon in ./
hybridauth.theme.inc - Template preprocess function for hybridauth_provider_icon.
- template_preprocess_hybridauth_widget in ./
hybridauth.theme.inc - Template preprocess function for hybridauth_widget.
File
- ./
hybridauth.module, line 574 - Main file for the HybridAuth module.
Code
function _hybridauth_add_icon_pack_files($name) {
static $done;
if (!isset($done[$name])) {
$done[$name] = TRUE;
$icon_pack = hybridauth_get_icon_pack($name);
if (!empty($icon_pack['css'])) {
drupal_add_css($icon_pack['path'] . '/' . $icon_pack['css']);
}
if (!empty($icon_pack['js'])) {
drupal_add_js($icon_pack['path'] . '/' . $icon_pack['js']);
}
}
}