Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 658 Bytes
<?php
/**
* release save helper function
*/
function release_save(&$release) {
return entity_get_controller('release')->save($release);
}
/**
* This essentially copies node_load()
*/
function release_load($rid = NULL, $vid = NULL, $reset = FALSE) {
$rids = (isset($rid) ? array($rid) : array());
$conditions = array();
$release = release_load_multiple($rids, $conditions, $reset);
return $release ? reset($release) : FALSE;
}
/**
* ...And this essentially copies node_load_multiple()
*/
function release_load_multiple($rids = array(), $conditions = array(), $reset = FALSE) {
return entity_load('release', $rids, $conditions, $reset);
}