function node_registration_type_load in Node registration 7
Retrieves a node registration bundle by its name.
File
- includes/
node_registration.entity.inc, line 76 - Entity hooks and callbacks for registrations.
Code
function node_registration_type_load($bundle_name) {
$bundles = field_info_bundles('node_registration');
$bundle_name = _node_registration_uri_to_type($bundle_name);
if (isset($bundles[$bundle_name])) {
return (object) $bundles[$bundle_name];
}
return FALSE;
}