You are here

function finder_optionwidgets_theme in Finder 7

Same name and namespace in other branches
  1. 6 modules/finder_optionwidgets/finder_optionwidgets.module \finder_optionwidgets_theme()

Implements hook_theme().

See also

hook_theme()

File

modules/finder_optionwidgets/finder_optionwidgets.module, line 255
The finder optionwidgets module.

Code

function finder_optionwidgets_theme() {
  $theme = array();
  $types = array(
    'option',
    'value',
  );
  $widgets = array(
    'select',
    'buttons',
    'onoff',
  );
  foreach ($types as $type) {
    foreach ($widgets as $widget) {
      $theme['finder_optionwidgets_' . $widget . '_' . $type] = array(
        'variables' => array(
          'option' => NULL,
          'element' => NULL,
        ),
      );
    }
  }
  return $theme;
}