function tripal_get_content_type
3.x tripal.entities.api.inc | tripal_get_content_type($bundle_name) |
Retrieves information about a given content type.
Parameters
$bundle_name: The name of a bundle.
Return value
An object containing information about the bundle.
Related topics
File
- tripal/
api/ tripal.entities.api.inc, line 618 - Provides an application programming interface (API) for working with TripalEntity content types (bundles) and their entities.
Code
function tripal_get_content_type($bundle_name) {
return db_select('tripal_bundle', 'tb')
->fields('tb')
->condition('tb.name', $bundle_name)
->execute()
->fetchAll();
}