function sendinblue_home_page in SendinBlue 7
Same name and namespace in other branches
- 7.2 includes/sendinblue_home.admin.inc \sendinblue_home_page()
Display Home page of module.
Return value
array Render array.
1 string reference to 'sendinblue_home_page'
- sendinblue_menu in ./
sendinblue.module - Implements hook_menu().
File
- includes/
sendinblue_home.admin.inc, line 13 - Sendinblue module home admin settings.
Code
function sendinblue_home_page() {
$page_html = '<div id="wrap" class="box-border-box container-fluid"><div id="wrap-left" class="box-border-box col-md-9">';
if (SendinblueManager::isLoggedInState()) {
$page_html .= SendinblueManager::generateHomeLogin();
}
else {
$page_html .= SendinblueManager::generateHomeLogout();
}
$page_html .= '</div><div id="wrap-right-side" class="box-border-box col-md-3">';
$page_html .= SendinblueManager::generateSidebar();
$page_html .= '</div></div>';
$output = array(
'main_wrapper' => array(
'#type' => 'markup',
'#markup' => $page_html,
),
'#attached' => array(
'css' => array(
drupal_get_path('module', 'sendinblue') . '/css/admin-setting.css',
),
),
);
return $output;
}