AamAadmiParty / india-standalone-drupal

A drupal based website that currently powers http://aamaadmiparty.org/, the "main" site. It is different from other AAP websites in drupal for primarily large scale email sending capabilities, among many other small things. (This website is a contender for merging with 'regional-domainsite-drupal' reposiroty when the latter is ready)
GNU General Public License v2.0
0 stars 1 forks source link

adding file usage for logo files #206

Closed akshatkhariwal closed 10 years ago

akshatkhariwal commented 10 years ago

adding file usage for logo files

194

akshatkhariwal commented 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); } }