You are here

function social_media_links_iconsets in Social Media Links Block and Field 7

Get all registered icon sets.

Return value

array Return a list of all registered platforms.

3 calls to social_media_links_iconsets()
social_media_links_form in ./social_media_links.module
social_media_links_iconset in ./social_media_links.module
Get informations about a specific icon set.
social_media_links_iconsets_options in ./social_media_links.module
Get the list options for the icon set style select.

File

./social_media_links.module, line 413
Functions for the Social Media Links module.

Code

function social_media_links_iconsets() {
  $sets =& drupal_static(__FUNCTION__);

  // Grab from cache or build the array.
  if (isset($sets)) {
    return $sets;
  }
  include_once 'social_media_links.iconsets.inc';
  $sets = array();
  $sets = module_invoke_all('social_media_links_iconset_info');
  foreach ($sets as $key => $set) {
    if ($path = social_media_links_iconset_path($key)) {
      $sets[$key]['path'] = $path;
    }
  }
  drupal_alter('social_media_links_iconset_info', $sets);
  return $sets;
}