You are here

quickedit_test.module in Quick Edit 7

Helper module for the Quick Edit tests.

File

tests/quickedit_test.module
View source
<?php

/**
 * @file
 * Helper module for the Quick Edit tests.
 */

/**
 * Implements hook_quickedit_render_field().
 */
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;
}