Closed akshatkhariwal closed 10 years ago
problem solved by running the following code
for ($i=2; $i<=35; $i++) {
$data = db_query("SELECT image_fid FROM {domain_aap_logo_uri} WHERE domain_id = :domain_id",
array(':domain_id' =>$i))->fetchField();
if ($data != 0) {
$file = file_load($data);
global $user;
file_usage_add($file, 'domain_aap_custom_panes', 'node', $user->uid);
dpm($file);
}
}
adding file usage for logo files
194