You are here

function hook_social_media_links_iconset_info in Social Media Links Block and Field 7

Defines the available iconsets.

Return value

array An associative array whose keys define the key for the iconset and contains information about the icons for the platforms. Each iconset deinition is itself an associative array, with the following key-value pairs:

  • name: The name of the iconset.
  • publisher: The name of the publisher.
  • publisher url: The url for further informations about the iconset.
  • styles: The available sizes/styles for the iconset.
  • path callback: The name of the callback function that returns the image urls.
  • download url: The url to download the iconset.
1 function implements hook_social_media_links_iconset_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

social_media_links_social_media_links_iconset_info in ./social_media_links.iconsets.inc
Register the default icon sets.
1 invocation of hook_social_media_links_iconset_info()
social_media_links_iconsets in ./social_media_links.module
Get all registered icon sets.

File

./social_media_links.api.php, line 72
API documentation for Social Media Links Block module.

Code

function hook_social_media_links_iconset_info() {

  // Simple example for a iconset definition.
  $icons['elegantthemes'] = array(
    'name' => 'Elegant Themes Icons',
    'publisher' => 'Elegant Themes',
    'publisher url' => 'http://www.elegantthemes.com/',
    'styles' => array(
      '32' => '32x32',
    ),
    'path callback' => 'social_media_links_path_elegantthemes',
    'download url' => 'http://www.elegantthemes.com/blog/resources/beautiful-free-social-media-icons',
  );
  return $icons;
}