how to display a custom entity in a view
Include this in your hook_entity_info

MyModule_entity_info() {
...
'views controller class' =&gt; 'EntityDefaultViewsController',
...
}


For more details check this link : http://www.sitepoint.com/build-custom-drupal-entities/