function relation_type_load in Relation 7
Loads a relation type (bundle).
Parameters
$relation_type: The machine name of the relation type (bundle) to be loaded.
Return value
A relation type record (as an Object) in the same format as expected by relation_type_save().
12 calls to relation_type_load()
- entityreference_relation_migrate_type_target_validate in relation_migrate/
relation_migrate.modules.inc - Implements hook_relation_migrate_type_target_validate().
- node_reference_relation_migrate_type_target_validate in relation_migrate/
relation_migrate.modules.inc - Implements hook_relation_migrate_type_target_validate().
- relation_dummy_field_field_formatter_view in relation_dummy_field/
relation_dummy_field.module - Implements hook_field_formatter_view().
- relation_endpoint_field_validate in ./
relation_endpoint.module - Implements hook_field_validate().
- relation_entity_collector in relation_entity_collector/
relation_entity_collector.module - The entity_collector form.
1 string reference to 'relation_type_load'
- relation_ui_type_form in ./
relation_ui.module - Relation relation type bundle settings form.
File
- ./
relation.module, line 321 - Describes relations between entities.
Code
function relation_type_load($relation_type) {
$types = relation_get_types(array(
$relation_type,
));
return isset($types[$relation_type]) ? $types[$relation_type] : FALSE;
}