function uuid_get_core_entity_info in Universally Unique IDentifier 7
Returns entity info for all supported core entities.
See also
uuid_entity_info()
5 calls to uuid_get_core_entity_info()
- UUIDAPITestCase::testSchemas in ./
uuid.test - Checks that schema for tables of core entities is correctly defined.
- uuid_entity_info_alter in ./
uuid.entity.inc - Implements hook_entity_info_alter().
- uuid_schema_alter in ./
uuid.install - Implements hook_schema_alter().
- uuid_uninstall in ./
uuid.install - Implements hook_uninstall().
- _uuid_install_uuid_fields in ./
uuid.install - Install the uuid and vuuid fields for Drupal core entity tables where needed.
File
- ./
uuid.entity.inc, line 21 - Entity related functions for UUID module.
Code
function uuid_get_core_entity_info() {
$info = array();
$info['user'] = array(
'base table' => 'users',
'entity keys' => array(
'uuid' => 'uuid',
),
);
$info['node'] = array(
'base table' => 'node',
'revision table' => 'node_revision',
'entity keys' => array(
'uuid' => 'uuid',
'revision uuid' => 'vuuid',
),
);
if (module_exists('comment')) {
$info['comment'] = array(
'base table' => 'comment',
'entity keys' => array(
'uuid' => 'uuid',
),
);
}
if (module_exists('file')) {
$info['file'] = array(
'base table' => 'file_managed',
'entity keys' => array(
'uuid' => 'uuid',
),
);
}
if (module_exists('taxonomy')) {
$info['taxonomy_term'] = array(
'base table' => 'taxonomy_term_data',
'entity keys' => array(
'uuid' => 'uuid',
),
);
}
if (module_exists('field_collection')) {
$info['field_collection_item'] = array(
'base table' => 'field_collection_item',
'entity keys' => array(
'uuid' => 'uuid',
),
);
}
return $info;
}