Refine frontpage links and user login workflow
This commit is contained in:
parent
77cacdc7c7
commit
ab55a69459
2 changed files with 6 additions and 3 deletions
|
@ -951,7 +951,7 @@ function user_menu() {
|
||||||
);
|
);
|
||||||
|
|
||||||
$items['user/login'] = array(
|
$items['user/login'] = array(
|
||||||
'title' => 'Log in',
|
'title' => 'Home',
|
||||||
'access callback' => 'user_is_anonymous',
|
'access callback' => 'user_is_anonymous',
|
||||||
'type' => MENU_DEFAULT_LOCAL_TASK,
|
'type' => MENU_DEFAULT_LOCAL_TASK,
|
||||||
);
|
);
|
||||||
|
|
|
@ -137,7 +137,10 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
|
||||||
$vars['head'] = preg_replace('/<link rel=\"(prev|up|next)\"[^>]*>\n/', '', $vars['head']);
|
$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:
|
// 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';
|
$vars['head_title'] = 'SuiteDesk';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -159,7 +162,7 @@ function zuitedesk_preprocess_page(&$vars, $hook) {
|
||||||
$pl = '';
|
$pl = '';
|
||||||
if ($vars['logged_in'] && !empty($deskmenu)) {
|
if ($vars['logged_in'] && !empty($deskmenu)) {
|
||||||
// Home option:
|
// Home option:
|
||||||
$pl .= _zuitedesk_option(TRUE, "$lang/", t('Home'), NULL, t('Workspace'));
|
$pl .= _zuitedesk_option(TRUE, "$lang/", t('Home'), NULL, t('Desktop'));
|
||||||
// Mission submenu:
|
// Mission submenu:
|
||||||
$submenu = '';
|
$submenu = '';
|
||||||
$submenu .= _zuitedesk_option(!empty($_SESSION['SuiteCRM_Session_ID']), "$lang/suitecrm", 'SuiteCRM', 'crm', t('Core sales, customer service and marketing processes with SuiteCRM'));
|
$submenu .= _zuitedesk_option(!empty($_SESSION['SuiteCRM_Session_ID']), "$lang/suitecrm", 'SuiteCRM', 'crm', t('Core sales, customer service and marketing processes with SuiteCRM'));
|
||||||
|
|
Reference in a new issue