function globallink_get_entity_type_for_bundle in GlobalLink Connect for Drupal 7.7
2 calls to globallink_get_entity_type_for_bundle()
- globallink_field in ./
globallink_field_configuration.inc - Renders form for globallink_field.
- globallink_insert_gl_field_config in ./
globallink_field_configuration.inc - Inserts GlobalLink field configuration.
File
- globallink_custom_entity/
globallink_custom_entity.inc, line 484
Code
function globallink_get_entity_type_for_bundle($bundle) {
$rows = db_select('eck_bundle', 'eb')
->fields('eb', array(
'entity_type',
))
->condition('machine_name', $bundle, '=')
->execute();
foreach ($rows as $row) {
$entity_type = $row->entity_type;
}
return $entity_type;
}