function styles_theme in Styles 7.2
Same name and namespace in other branches
- 6.2 styles.module \styles_theme()
- 6 styles.module \styles_theme()
- 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',
),
);
}