summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-16 18:31:44 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-16 18:31:44 +0000
commit451821abe7e1f68d53b1818c111832efa8b76f8d (patch)
tree2a12568c27870e880219fb77134741f126057c03 /modules
parent50cd304847d8eccccefb8eb835131be3a0f5a428 (diff)
downloadbrdo-451821abe7e1f68d53b1818c111832efa8b76f8d.tar.gz
brdo-451821abe7e1f68d53b1818c111832efa8b76f8d.tar.bz2
- Patch #10110 by JonBob: code improvement: looks like we have an artifact from before clean URLs in node.module. This patch removes the global variable $mod, which is no longer set and not necessary here anyway.
Diffstat (limited to 'modules')
-rw-r--r--modules/node.module11
-rw-r--r--modules/node/node.module11
2 files changed, 8 insertions, 14 deletions
diff --git a/modules/node.module b/modules/node.module
index b68c01800..0e9610d7c 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -7,8 +7,6 @@ define('NODE_NEW_LIMIT', time() - 30 * 24 * 60 * 60);
* Implementation of hook_help().
*/
function node_help($section) {
- global $mod;
-
switch ($section) {
case 'admin/help#node':
$output = t("
@@ -33,12 +31,11 @@ function node_help($section) {
<dt>Published</dt><dd>When using Drupal's moderation system a node remains unpublished -- unavailable to non-moderators -- until it is marked Published.</dd></dl>
<p>Now that you know what is in a node, here are some of the types of nodes available.</p>", array("%teaser" => url("admin/node/configure/settings")));
- if ($mod == 'admin') {
- foreach (node_list() as $type) {
- $output .= '<h3>'. t('Node type: %module', array('%module' => node_invoke($type, 'node_name'))). '</h3>';
- $output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));
- }
+ foreach (node_list() as $type) {
+ $output .= '<h3>'. t('Node type: %module', array('%module' => node_invoke($type, 'node_name'))). '</h3>';
+ $output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));
}
+
return $output;
case 'admin/modules#description':
diff --git a/modules/node/node.module b/modules/node/node.module
index b68c01800..0e9610d7c 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -7,8 +7,6 @@ define('NODE_NEW_LIMIT', time() - 30 * 24 * 60 * 60);
* Implementation of hook_help().
*/
function node_help($section) {
- global $mod;
-
switch ($section) {
case 'admin/help#node':
$output = t("
@@ -33,12 +31,11 @@ function node_help($section) {
<dt>Published</dt><dd>When using Drupal's moderation system a node remains unpublished -- unavailable to non-moderators -- until it is marked Published.</dd></dl>
<p>Now that you know what is in a node, here are some of the types of nodes available.</p>", array("%teaser" => url("admin/node/configure/settings")));
- if ($mod == 'admin') {
- foreach (node_list() as $type) {
- $output .= '<h3>'. t('Node type: %module', array('%module' => node_invoke($type, 'node_name'))). '</h3>';
- $output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));
- }
+ foreach (node_list() as $type) {
+ $output .= '<h3>'. t('Node type: %module', array('%module' => node_invoke($type, 'node_name'))). '</h3>';
+ $output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));
}
+
return $output;
case 'admin/modules#description':