Commit 20e8bc12 authored by Dries's avatar Dries
Browse files

*** empty log message ***

parent bccc250d
......@@ -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
......@@ -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
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