function mandrill_activity_load in Mandrill 7
Same name and namespace in other branches
- 7.2 modules/mandrill_activity/mandrill_activity.module \mandrill_activity_load()
Loads a single mandrill_activity_entity or all of them if no name provided.
@string $name Machine name of Mandrill Activity Entity to load.
Return value
MandrillActivityEntity|array Array of MandrillActivityEntity's or a single MandrillActivityEntity.
1 call to mandrill_activity_load()
- mandrill_activity_menu in modules/
mandrill_activity/ mandrill_activity.module - Implements hook_menu().
1 string reference to 'mandrill_activity_load'
- mandrill_activity_entity_form in modules/
mandrill_activity/ mandrill_activity.admin.inc - Returns a form for a mandrill_activity_entity.
File
- modules/
mandrill_activity/ mandrill_activity.module, line 88 - Main module functions for mandrill_activity.
Code
function mandrill_activity_load($name = NULL) {
$types = entity_load_multiple_by_name('mandrill_activity_entity', isset($name) ? array(
$name,
) : FALSE);
return isset($name) ? reset($types) : $types;
}