You are here

function icon_process_attached in Icon API 8

Same name and namespace in other branches
  1. 7 includes/utilities.inc \icon_process_attached()

Wrapper function for drupal_process_attached().

It only is invoked once per bundle, regardless of however many icons are rendered from it.

Parameters

array $bundle: The icon bundle array.

Return value

bool FALSE if there were any missing library dependencies; TRUE if all library dependencies were met.

2 calls to icon_process_attached()
icon_filter_preprocess_field in modules/icon_filter/icon_filter.module
Implements hook_field_prepare_view().
template_preprocess_icon in includes/theme.inc
Implements hook_preprocess_icon().
1 string reference to 'icon_process_attached'
icon_reset_static_cache in includes/cache.inc
Clears all static caches used by the icon module.

File

includes/utilities.inc, line 402
utilities.inc Provides useful functions and common tasks.

Code

function icon_process_attached(array $bundle = array()) {
  if (empty($bundle['name'])) {
    return FALSE;
  }
  $bundles =& drupal_static(__FUNCTION__, array());
  if (!isset($bundles[$bundle['name']])) {
    $bundles[$bundle['name']] = drupal_process_attached($bundle);
  }
  return $bundles[$bundle['name']];
}