function rotating_banner_slide_create in Rotating Banner 7
Same name and namespace in other branches
- 7.2 rotating_banner.module \rotating_banner_slide_create()
Creates a rotating banner slide, returns its primary key.
@todo: Can this.
Parameters
int $rbid:
int $fid:
string $link:
array $textboxes: An array of textboxes with the format:
- postion => array('top' => 100px', 'left' => '100px')
- content (string)
- type (string) A class name to apply to the textbox
string $layout: A class name to apply to the element
Return value
<type>
File
- ./
rotating_banner.module, line 111
Code
function rotating_banner_slide_create($rbid, $fid, $link = '', $textboxes = NULL, $layout = NULL) {
$rbs = RotatingBannerSlide::create($rbid, 0, $fid, $link, $textboxes, $layout);
if ($rbs->sid) {
return $rbs->sid;
}
}