You are here

function icon_bundle_get_theme in Icon API 7

Same name and namespace in other branches
  1. 8 icon.module \icon_bundle_get_theme()

Helper function to return the proper theme.

Necessary for displaying a list of icons of a specific bundle.

1 string reference to 'icon_bundle_get_theme'
icon_menu in ./icon.module
Implements hook_menu().

File

./icon.module, line 465
icon.module Provides icon integration with menu items.

Code

function icon_bundle_get_theme($bundle, $global = FALSE) {
  global $theme;
  return !empty($bundle['theme']) && !$global ? $bundle['theme'] : $theme;
}