Refine frontpage links and user login workflow

This commit is contained in:
Manuel Cillero 2017-08-07 11:27:42 +02:00
parent 77cacdc7c7
commit ab55a69459
2 changed files with 6 additions and 3 deletions

View file

@ -951,7 +951,7 @@ function user_menu() {
);
$items['user/login'] = array(
'title' => 'Log in',
'title' => 'Home',
'access callback' => 'user_is_anonymous',
'type' => MENU_DEFAULT_LOCAL_TASK,
);

View file

@ -137,7 +137,10 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
$vars['head'] = preg_replace('/<link rel=\"(prev|up|next)\"[^>]*>\n/', '', $vars['head']);
// Refine title; suffix for public (U+00B0), authorised (U+207B) and private (U+00AA) nodes:
if ($vars['head_title'] == 'SuiteDesk | SuiteDesk') {
if (!$vars['logged_in']) {
$vars['head_title'] = t('Welcome to @site_name', array('@site_name' => $vars['site_name'] ? $vars['site_name'] : 'SuiteDesk'));
}
elseif ($vars['head_title'] == 'SuiteDesk | SuiteDesk') {
$vars['head_title'] = 'SuiteDesk';
}
else {
@ -159,7 +162,7 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
$pl = '';
if ($vars['logged_in'] && !empty($deskmenu)) {
// Home option:
$pl .= _zuitedesk_option(TRUE, "$lang/", t('Home'), NULL, t('Workspace'));
$pl .= _zuitedesk_option(TRUE, "$lang/", t('Home'), NULL, t('Desktop'));
// Mission submenu:
$submenu = '';
$submenu .= _zuitedesk_option(!empty($_SESSION['SuiteCRM_Session_ID']), "$lang/suitecrm", 'SuiteCRM', 'crm', t('Core sales, customer service and marketing processes with SuiteCRM'));