Remove field wrapper markup when display field with Panels

Public

Get raw version
php
  1. /**
  2.  * Implements hook_panels_pane_content_alter().
  3.  */
  4. function YOURMODULE_panels_pane_content_alter($content, $pane, $args, $contexts) {
  5. if (is_object($content) && isset($content->module) && $content->module == 'entity_field') {
  6. $content->content['#theme'] = '';
  7. }
  8. }