function wsconfig_page_view in Web Service Data 7
Sets up content to show an individual model @todo - get rid of drupal_set_title();
File
- modules/
wsconfig/ wsconfig.module, line 571 - Main module for wsconfig
Code
function wsconfig_page_view($wsconfig, $view_mode = 'full') {
$controller = entity_get_controller('wsconfig');
$content = $controller
->view(array(
$wsconfig->wsconfig_id => $wsconfig,
));
drupal_set_title($wsconfig->title);
return $content;
}