| Versionen | |
|---|---|
| drupal7 | field_theme() |
Implementation of hook_theme().
modules/
<?php
function field_theme() {
$path = drupal_get_path('module', 'field') . '/theme';
return array(
'field' => array(
'template' => 'field',
'arguments' => array('element' => NULL),
'path' => $path,
),
// TODO D7 : do we need exclude in core? See [#367215].
// This is just adding '#post_render' => array('field_wrapper_post_render')
// at the right places in the render array generated by field_default_view().
// Can be done in hook_field_attach_post_view if we want.
'field_exclude' => array(
'arguments' => array('content' => NULL, 'object' => array(), 'context' => NULL),
),
'field_multiple_value_form' => array(
'arguments' => array('element' => NULL),
),
);
}
?>
Kommentare
Kommentar hinzufügen