You are here

function styles_theme in Styles 7.2

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

Implements hook_theme().

File

./styles.module, line 58
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,
        'instance' => NULL,
      ),
      'template' => 'styles',
      'path' => $path . '/themes',
      'file' => 'styles.theme.inc',
    ),
    'styles_field_formatter' => array(
      'variables' => array(
        'render element' => 'element',
        'element' => NULL,
        'object' => NULL,
      ),
      'path' => $path . '/themes',
      'file' => 'styles.theme.inc',
    ),
  );
}