function rotating_banner_create in Rotating Banner 7.2
Same name and namespace in other branches
- 7 rotating_banner.module \rotating_banner_create()
Creates a rotating banner record in {rotating_banners}, returns the id.
@todo: can this
Parameters
{string} title:
{array} settings:
Return value
{mixed} int or false)
File
- ./
rotating_banner.module, line 84
Code
function rotating_banner_create($title, $settings = NULL) {
$rb = RotatingBanner::create($title, $settings);
if (!$rb->rbid) {
return $rb->rbid;
}
else {
return FALSE;
}
}