function radioactivity_decay_profile_load in Radioactivity 7.2
Load a decay profile by machine name
2 calls to radioactivity_decay_profile_load()
- RadioactivityIncidentStorage::getDecayProfile in includes/
RadioactivityIncidentStorage.inc - Get decay profile attached to this instance
- radioactivity_get_field_profile in ./
radioactivity.module - Get an instance of incident storage by params
File
- ./
radioactivity.module, line 618 - Radioactivity core functionality
Code
function radioactivity_decay_profile_load($machine_name) {
// Here instead of reading directly from the db
// we use the ctools export wrappers
ctools_include('export');
$result = ctools_export_load_object('radioactivity_decay_profile', 'all');
if (isset($result[$machine_name])) {
return $result[$machine_name];
}
}