You are here

public function WsConfigController::buildContent in Web Service Data 7

Overriding the buildContent function to add entity specific fields

Overrides EntityAPIController::buildContent

File

modules/wsconfig/wsconfig.entity.inc, line 285
Entity classes

Class

WsConfigController
The Controller for WsConfig entities

Code

public function buildContent($entity, $view_mode = 'full', $langcode = NULL, $content = array()) {
  $content = parent::buildContent($entity, $view_mode, $langcode, $content);

  //    $content['wsconfig_sample_data'] =  array(
  //      '#markup' => theme('wsconfig_sample_data', array('wsconfig_sample_data' => check_plain($entity->data['sample_data']), 'wsconfig' => $entity)),
  //    );
  return $content;
}