function icon_bundle_list in Icon API 7
Same name and namespace in other branches
- 8 includes/admin.inc \icon_bundle_list()
Menu callback for 'icon_bundle_list'.
1 string reference to 'icon_bundle_list'
- icon_menu in ./
icon.module - Implements hook_menu().
File
Code
function icon_bundle_list($bundle) {
$build = array();
foreach ($bundle['icons'] as $icon => $value) {
$build[] = array(
'#theme' => 'icon',
'#bundle' => $bundle['name'],
'#icon' => $icon,
'#attributes' => array(
'title' => $icon,
),
);
}
// Allow other modules and themes to alter a bundle's listing.
$bundle_context = $bundle;
drupal_alter('icon_bundle_list', $build, $bundle_context);
return $build;
}