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