function _dynamic_banner_load in Dynamic Banner 6
Fetch a specific banner from the database.
2 calls to _dynamic_banner_load()
- dynamic_banner_admin_delete_confirm in includes/
callbacks.inc - Menu callback; confirms deleting a Banner
- dynamic_banner_admin_form in includes/
callbacks.inc - Return a form for editing or creating an individual Banner
File
- includes/
callbacks.inc, line 369 - 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($dbid) {
if ($dbid) {
return db_fetch_array(db_query("SELECT * FROM {dynamic_banner} WHERE dbid = '%d'", $dbid));
}
// if null was requested, function can not run
return FALSE;
}