- Patch #25121 by Robrecht J.: changed itemized lists with hardcoded CSS to definition lists.
parent
22ea50dfec
commit
f3a9a99570
|
@ -1400,17 +1400,15 @@ function node_add($type) {
|
|||
// If no (valid) node type has been provided, display a node type overview.
|
||||
foreach (node_list() as $type) {
|
||||
if (node_access('create', $type)) {
|
||||
$out = '<li>';
|
||||
$out .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name')))));
|
||||
$out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>';
|
||||
$out .= '</li>';
|
||||
$out = '<dt>'. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))) .'</dt>';
|
||||
$out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>';
|
||||
$item[node_invoke($type, 'node_name')] = $out;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($item)) {
|
||||
ksort($item);
|
||||
$output = t('Choose the appropriate item from the list:') .'<ul>'. implode('', $item) .'</ul>';
|
||||
$output = t('Choose the appropriate item from the list:') .'<dl>'. implode('', $item) .'</dl>';
|
||||
}
|
||||
else {
|
||||
$output = message_access();
|
||||
|
|
|
@ -1400,17 +1400,15 @@ function node_add($type) {
|
|||
// If no (valid) node type has been provided, display a node type overview.
|
||||
foreach (node_list() as $type) {
|
||||
if (node_access('create', $type)) {
|
||||
$out = '<li>';
|
||||
$out .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name')))));
|
||||
$out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>';
|
||||
$out .= '</li>';
|
||||
$out = '<dt>'. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))) .'</dt>';
|
||||
$out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>';
|
||||
$item[node_invoke($type, 'node_name')] = $out;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($item)) {
|
||||
ksort($item);
|
||||
$output = t('Choose the appropriate item from the list:') .'<ul>'. implode('', $item) .'</ul>';
|
||||
$output = t('Choose the appropriate item from the list:') .'<dl>'. implode('', $item) .'</dl>';
|
||||
}
|
||||
else {
|
||||
$output = message_access();
|
||||
|
|
|
@ -319,7 +319,7 @@ function user_access($string, $account = NULL) {
|
|||
}
|
||||
|
||||
// User #1 has all privileges:
|
||||
if ($account->uid === 1) {
|
||||
if ($account->uid == 1) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -319,7 +319,7 @@ function user_access($string, $account = NULL) {
|
|||
}
|
||||
|
||||
// User #1 has all privileges:
|
||||
if ($account->uid === 1) {
|
||||
if ($account->uid == 1) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue