summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-02-23 21:36:29 +0000
committerDries Buytaert <dries@buytaert.net>2003-02-23 21:36:29 +0000
commitb1f4758455558576a8a159b3d72b50c8724cca5d (patch)
tree129c07f32a4b5b9beb7c4eace252302911a34964 /modules/node/node.module
parent20e8bc12cae31a4d6ab90ec525def2d34253d3c4 (diff)
downloadbrdo-b1f4758455558576a8a159b3d72b50c8724cca5d.tar.gz
brdo-b1f4758455558576a8a159b3d72b50c8724cca5d.tar.bz2
- Fixed typo. Patch by Garym. (Something went wrong with my earlier commit.)
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module21
1 files changed, 8 insertions, 13 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 32f50b389..1d3af00c0 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -471,7 +471,7 @@ function node_link($type, $node = 0, $main = 0) {
menu("admin/node", "node management", "node_admin");
menu("admin/node/nodes", "post overview");
menu("admin/node/nodes/0", "new or updated posts", "node_admin", NULL, 0);
- menu("admin/node/nodes/1", "posts that await approval", "node_admin", NULL, 1);
+ menu("admin/node/nodes/1", "approval queue", "node_admin", NULL, 1);
menu("admin/node/search", "search post", "node_admin", $help["search"], 8);
menu("admin/node/help", "help", "node_help", NULL, 9);
menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1);
@@ -1304,19 +1304,14 @@ function node_update_index() {
// last run date for the nodes update.
return array("last_update" => "node_cron_last",
"node_type" => "node",
- "select" => "SELECT n.nid as lno, n.title as text1, n.body as text2 FROM node n WHERE n.status = 1 AND moderate = 0 and (created > " . variable_get("node_cron_las node_access("view", $node)) {
- $links[] = l(t("view"), "node/view/$nid");
- }
+ "select" => "SELECT n.nid as lno, n.title as text1, n.body as text2 FROM node n WHERE n.status = 1 AND moderate = 0 and (created > " . variable_get("node_cron_last", 1) . " or changed > " . variable_get("node_cron_last", 1) . ")");
+}
- if ($nid && node_access("update", $node)) {
- $links[] = l(t("edit"), "node/edit/$nid");
+function node_nodeapi(&$node, $op, $arg = 0) {
+ switch ($op) {
+ case "fields":
+ return array("nid", "uid", "type", "title", "teaser", "body", "revisions", "score", "status", "promote", "static", "created", "changed", "users", "votes");
}
-
- $output .= "<p>". theme("links", $links) ."</p>";
-
- return $output;
}
-function node_delete($edit) {
-
- $node = node_load(array("nid" => $edit[" \ No newline at end of file
+?>