You are here

function twitter_entity_info in Twitter 7.6

Implements hook_entity_info().

File

./twitter.module, line 29
Provides API integration with the Twitter microblogging service.

Code

function twitter_entity_info() {
  return array(
    'twitter_status' => array(
      'label' => t('Twitter Status'),
      'module' => 'twitter',
      'entity class' => 'TwitterStatus',
      'controller class' => 'EntityAPIController',
      'base table' => 'twitter',
      'entity keys' => array(
        'id' => 'twitter_id',
      ),
      'label callback' => 'entity_class_label',
      'uri callback' => 'entity_class_uri',
    ),
    'twitter_account' => array(
      'label' => t('Twitter Account'),
      'module' => 'twitter',
      'entity class' => 'TwitterAccount',
      'controller class' => 'EntityAPIController',
      'base table' => 'twitter_account',
      'entity keys' => array(
        'id' => 'twitter_uid',
        'label' => 'screen_name',
      ),
      'uri callback' => 'entity_class_uri',
    ),
  );
}