function dynamic_banner_load_banner in Dynamic Banner 7
Same name and namespace in other branches
- 7.2 dynamic_banner.module \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 includes/
callbacks.inc - Menu callback; confirms deleting a Banner
- dynamic_banner_admin_form in includes/
callbacks.inc - 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
- includes/
callbacks.inc, line 740 - Dynamic Banner Admin Pages and various other functions to make them work Most of the code in this file was derived from path module
Code
function dynamic_banner_load_banner($dbid) {
$query = db_select('dynamic_banner', 'd');
$query
->condition('d.dbid', $dbid, '=')
->fields('d');
$result = $query
->execute()
->fetchObject();
if ($result) {
return $result;
}
return NULL;
}