You are here

function isotope_theme in Isotope (with Masonry and Packery) 7.2

Same name and namespace in other branches
  1. 8 isotope.module \isotope_theme()

Implements hook_theme().

Defines the theming capabilities provided by this module.

A default 'instance' of NULL means an optionset should apply to all instances on the page, unless restricted to one or more.

File

./isotope.module, line 352
Load the isotope library and provide configuration and theme options.

Code

function isotope_theme($existing, $type, $theme, $path) {
  return array(
    'isotope_grid' => array(
      'variables' => array(
        'config' => 'isotope_default_config',
        'items' => array(),
        'instance' => NULL,
      ),
    ),
    'isotope_filter' => array(
      'variables' => array(
        'items' => array(),
        'instance' => NULL,
        'filtername' => 'filter',
        'filtertitle' => NULL,
      ),
    ),
    'isotope_sorter' => array(
      'variables' => array(
        'sorts' => array(),
        'original' => NULL,
        'instance' => NULL,
      ),
    ),
  );
}