function dynamic_banner_load_banner in Dynamic Banner 7.2
Same name and namespace in other branches
- 7 includes/callbacks.inc \dynamic_banner_load_banner()
- 8.x dynamic_banner.module \dynamic_banner_load_banner()
Fetch a specific banner from the database.
2 calls to dynamic_banner_load_banner()
- dynamic_banner_admin_delete_confirm in ./
dynamic_banner.module - Menu callback; confirms deleting a Banner.
- dynamic_banner_admin_form in ./
dynamic_banner.module - The main form dealing with dynamic banner There is now only one form for dynamic banner to deal with unlink in the d6 version
File
- ./
dynamic_banner.module, line 899 - Distributed under GNU GPL version 3
Code
function dynamic_banner_load_banner($dbid) {
$query = db_select('dynamic_banner', 'd');
$query
->condition('d.dbid', $dbid, '=')
->fields('d');
$result = $query
->execute();
if ($result
->rowCount() > 0) {
return $result
->fetchObject();
}
return NULL;
}