function sendinblue_block_view in SendinBlue 7
Same name and namespace in other branches
- 7.2 sendinblue.module \sendinblue_block_view()
Implements hook_block_view().
File
- ./
sendinblue.module, line 189 - The entry point of Sendinblue module.
Code
function sendinblue_block_view($delta = '') {
$signup = sendinblue_signup_load($delta);
if ($signup) {
$block = array(
'subject' => $signup->title,
'content' => drupal_get_form('sendinblue_signup_subscribe_block_' . $signup->name . '_form', $signup, 'sendinblue_signup_block'),
);
}
else {
$block = FALSE;
}
return $block;
}