Create an Entity (Beginner)
Module file:
Hook name is source_entity_info()  insted of source_entity_entity_info() 

    &lt;?php

    function source_entity_entity_info() {
      $info = array(
        'source_entity' =&gt; array(
          'label' =&gt; t('Source Entity 1'),
          'base table' =&gt; 'source_entity',
          'entity keys' =&gt; array(
            'id' =&gt; 'teid',
          ),
        ),
      );
      return $info;

}