You are here

function quickedit_test_quickedit_render_field in Quick Edit 7

Implements hook_quickedit_render_field().

File

tests/quickedit_test.module, line 11
Helper module for the Quick Edit tests.

Code

function quickedit_test_quickedit_render_field($entity_type, $entity, $field_name, $view_mode_id, $langcode) {
  $field = field_view_field($entity_type, $entity, $field_name);
  $field['#prefix'] = '<div class="quickedit-test-wrapper">';
  $field['#suffix'] = '</div>';
  return $field;
}