You are here

function styles_theme in Styles 7

Same name and namespace in other branches
  1. 6.2 styles.module \styles_theme()
  2. 6 styles.module \styles_theme()
  3. 7.2 styles.module \styles_theme()

Implements hook_theme().

File

./styles.module, line 128
Bundles similar display formatters together.

Code

function styles_theme($existing, $type, $theme, $path) {
  return array(
    'styles' => array(
      'variables' => array(
        'field_type' => NULL,
        'style_name' => NULL,
        'object' => NULL,
      ),
      'template' => 'styles',
    ),
    'styles_field_formatter' => array(
      'variables' => array(
        'render element' => 'element',
        'element' => NULL,
        'object' => NULL,
      ),
    ),
  );
}