You are here

function micon_theme in Micon 8

Same name and namespace in other branches
  1. 2.x micon.module \micon_theme()

Implements hook_theme().

File

./micon.module, line 31
Contains micon.module.

Code

function micon_theme($existing, $type, $theme, $path) {
  $themes = [];
  $themes['micon'] = [
    'variables' => [
      'title' => NULL,
      'attributes' => [],
      'position' => 'before',
      'icon' => NULL,
      'icon_only' => FALSE,
      'icon_attributes' => [],
    ],
    'file' => 'micon.theme.inc',
  ];
  $themes['micon_icon'] = [
    'variables' => [
      'icon' => NULL,
      'attributes' => [],
    ],
    'file' => 'micon.theme.inc',
  ];
  $themes['micon_package'] = [
    'render element' => 'element',
    'file' => 'micon.theme.inc',
  ];
  $themes['micon_icon_list'] = [
    'render element' => 'element',
    'file' => 'micon.theme.inc',
  ];
  $themes['micon_icon_font'] = [
    'render element' => 'element',
    'file' => 'micon.theme.inc',
  ];
  $themes['micon_icon_image'] = [
    'render element' => 'element',
    'file' => 'micon.theme.inc',
  ];
  return $themes;
}