function imageblock_get_file in Image Block 7
Same name and namespace in other branches
- 6 imageblock.module \imageblock_get_file()
Returns the file information for a give block ID.
3 calls to imageblock_get_file()
- imageblock_block_save in ./
imageblock.module - Implements hook_block_save().
- imageblock_configure_form in ./
imageblock.module - imageblock_custom_block_delete_submit in ./
imageblock.admin.inc - Form submission handler for the image block deletion form.
File
- ./
imageblock.module, line 331 - imageblock.module Primarily Drupal hooks.
Code
function imageblock_get_file($bid) {
$fid = db_query("SELECT fid FROM {imageblock} WHERE bid = :bid", array(
':bid' => $bid,
))
->fetchField();
return file_load($fid);
}