Commit a76ee6c9 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

#34132, remove remnants of nodeapi('fields'), patch by myself

parent 47794901
......@@ -275,9 +275,6 @@ function comment_form_alter($form_id, &$form) {
*/
function comment_nodeapi(&$node, $op, $arg = 0) {
switch ($op) {
case 'fields':
return array('comment');
case 'load':
return db_fetch_array(db_query("SELECT last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid = %d", $node->nid));
break;
......
......@@ -275,9 +275,6 @@ function comment_form_alter($form_id, &$form) {
*/
function comment_nodeapi(&$node, $op, $arg = 0) {
switch ($op) {
case 'fields':
return array('comment');
case 'load':
return db_fetch_array(db_query("SELECT last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid = %d", $node->nid));
break;
......
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