function hook_follow_icon_styles_alter in Follow 7.2
Alter the available icon styles.
Parameters
array $styles: An array of icon styles.
1 invocation of hook_follow_icon_styles_alter()
- follow_icon_styles in ./
follow.inc - Load up all icon styles. You can add or alter these icon styles in a module or theme by implementing hook_follow_icon_styles_alter(). See follow.api.php for an example.
File
- ./
follow.api.php, line 33
Code
function hook_follow_icon_styles_alter(&$styles) {
$styles['my-style'] = array(
'name' => 'my-style',
'label' => t('My Custom Icon Style'),
// An array of CSS overrides. These overrides will only apply to the
// generic anchor (a.follow-link). If you would like something more
// customized than this, it is recommended you add it to your own custom
// stylesheet, or use the CSS Injector module. NOTE: if you change the CSS
// overrides after the style is already in use, you will have to delete the
// generated CSS file in your public files directory.
'css-overrides' => array(
'height: 44px;',
'line-height: 40px;',
'padding-left: 41px;',
'padding-right: 5px;',
),
// You can specify a custom path to your icons. Your icons must be named
// appropriately in order for them to work. Please see the small or large
// icons in the follow module directory for an example.
'icon-path' => 'sites/all/themes/mytheme/follow-icons',
);
}