Commit f3a9a995 authored by Dries's avatar Dries

- Patch #25121 by Robrecht J.: changed itemized lists with hardcoded CSS to definition lists.

parent 22ea50df
...@@ -1400,17 +1400,15 @@ function node_add($type) { ...@@ -1400,17 +1400,15 @@ function node_add($type) {
// If no (valid) node type has been provided, display a node type overview. // If no (valid) node type has been provided, display a node type overview.
foreach (node_list() as $type) { foreach (node_list() as $type) {
if (node_access('create', $type)) { if (node_access('create', $type)) {
$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 .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))); $out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>';
$out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>';
$out .= '</li>';
$item[node_invoke($type, 'node_name')] = $out; $item[node_invoke($type, 'node_name')] = $out;
} }
} }
if (isset($item)) { if (isset($item)) {
ksort($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 { else {
$output = message_access(); $output = message_access();
......
...@@ -1400,17 +1400,15 @@ function node_add($type) { ...@@ -1400,17 +1400,15 @@ function node_add($type) {
// If no (valid) node type has been provided, display a node type overview. // If no (valid) node type has been provided, display a node type overview.
foreach (node_list() as $type) { foreach (node_list() as $type) {
if (node_access('create', $type)) { if (node_access('create', $type)) {
$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 .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))); $out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>';
$out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>';
$out .= '</li>';
$item[node_invoke($type, 'node_name')] = $out; $item[node_invoke($type, 'node_name')] = $out;
} }
} }
if (isset($item)) { if (isset($item)) {
ksort($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 { else {
$output = message_access(); $output = message_access();
......
...@@ -319,7 +319,7 @@ function user_access($string, $account = NULL) { ...@@ -319,7 +319,7 @@ function user_access($string, $account = NULL) {
} }
// User #1 has all privileges: // User #1 has all privileges:
if ($account->uid === 1) { if ($account->uid == 1) {
return TRUE; return TRUE;
} }
......
...@@ -319,7 +319,7 @@ function user_access($string, $account = NULL) { ...@@ -319,7 +319,7 @@ function user_access($string, $account = NULL) {
} }
// User #1 has all privileges: // User #1 has all privileges:
if ($account->uid === 1) { if ($account->uid == 1) {
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment