Get list of files and the filetype given a bundle md5.
Paramètres
$bundle_md5: Bundle's machine name.
Return value
array ($filetype, $files)
2 calls to advagg_get_files_in_bundle()
- advagg_cached_bundle_get dans ./
advagg.module - Get a bundle from the cache & verify it is good.
- advagg_rebuild_bundle dans ./
advagg.module - Rebuild a bundle.
Fichier
-
./
advagg.module, line 1662
Code
function advagg_get_files_in_bundle($bundle_md5) {
$files = array();
$filetype = NULL;
$results = db_query("SELECT filename, filetype FROM {advagg_files} AS af INNER JOIN {advagg_bundles} AS ab USING ( filename_md5 ) WHERE bundle_md5 = :bundle_md5 ORDER BY porder ASC", array(
':bundle_md5' => $bundle_md5,
));
while ($row = db_fetch_array($results)) {
$files[] = $row['filename'];
$filetype = $row['filetype'];
}
return array(
$filetype,
$files,
);
}