function entityform_type_load in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.module \entityform_type_load()
Menu argument loader; Load a entityform type by string.
Parameters
$type: The machine-readable name of a entityform type to load.
Return value
A entityform type array or FALSE if $type does not exist.
10 calls to entityform_type_load()
- Entityform::defaultLabel in ./
entityform.module - Defines the entity label if the 'entity_class_label' callback is used.
- Entityform::getTypeName in ./
entityform.module - EntityformCRUDTestCase::updateEntityformType in ./
entityform.test - EntityformUIController::confirm_path in ./
entityform.admin.inc - entityform_access in ./
entityform.module - Determines whether the given user has access to a entityform.
1 string reference to 'entityform_type_load'
- entityform_type_form in ./
entityform_type.admin.inc - Generates the entityform type editing form.
File
- ./
entityform.module, line 505 - Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface
Code
function entityform_type_load($type) {
$type = str_replace('-', '_', $type);
$types = entityform_get_types();
return isset($types[$type]) ? $types[$type] : FALSE;
}