diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-02-23 21:30:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-02-23 21:30:52 +0000 |
commit | 20e8bc12cae31a4d6ab90ec525def2d34253d3c4 (patch) | |
tree | 2e33a1718fb16e28780dc4e9cdf0a12bcc9d559d /modules/node.module | |
parent | bccc250d8fbdb965ced86b8891b58d09d788f19d (diff) | |
download | brdo-20e8bc12cae31a4d6ab90ec525def2d34253d3c4.tar.gz brdo-20e8bc12cae31a4d6ab90ec525def2d34253d3c4.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/modules/node.module b/modules/node.module index 22a095f53..32f50b389 100644 --- a/modules/node.module +++ b/modules/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 away approval", "node_admin", NULL, 1); + menu("admin/node/nodes/1", "posts that await approval", "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,14 +1304,19 @@ 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_last", 1) . " or changed > " . variable_get("node_cron_last", 1) . ")"); -} + "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"); + } -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"); + if ($nid && node_access("update", $node)) { + $links[] = l(t("edit"), "node/edit/$nid"); } + + $output .= "<p>". theme("links", $links) ."</p>"; + + return $output; } -?> +function node_delete($edit) { + + $node = node_load(array("nid" => $edit["
\ No newline at end of file |