@@ -720,9 +720,9 @@ function book_build_active_trail($book_link) {
...
@@ -720,9 +720,9 @@ function book_build_active_trail($book_link) {
}
}
/**
/**
* Implementation of hook_nodeapi_load().
* Implementation of hook_node_load().
*/
*/
functionbook_nodeapi_load($nodes,$types){
functionbook_node_load($nodes,$types){
$result=db_query("SELECT * FROM {book} b INNER JOIN {menu_links} ml ON b.mlid = ml.mlid WHERE b.nid IN (:nids)",array(':nids'=>array_keys($nodes)),array('fetch'=>PDO::FETCH_ASSOC));
$result=db_query("SELECT * FROM {book} b INNER JOIN {menu_links} ml ON b.mlid = ml.mlid WHERE b.nid IN (:nids)",array(':nids'=>array_keys($nodes)),array('fetch'=>PDO::FETCH_ASSOC));
foreach($resultas$record){
foreach($resultas$record){
$nodes[$record['nid']]->book=$record;
$nodes[$record['nid']]->book=$record;
...
@@ -733,9 +733,9 @@ function book_nodeapi_load($nodes, $types) {
...
@@ -733,9 +733,9 @@ function book_nodeapi_load($nodes, $types) {
@@ -646,9 +646,9 @@ function comment_nodeapi_insert($node) {
...
@@ -646,9 +646,9 @@ function comment_nodeapi_insert($node) {
}
}
/**
/**
* Implementation of hook_nodeapi_delete().
* Implementation of hook_node_delete().
*/
*/
functioncomment_nodeapi_delete($node){
functioncomment_node_delete($node){
db_delete('comment')
db_delete('comment')
->condition('nid',$node->nid)
->condition('nid',$node->nid)
->execute();
->execute();
...
@@ -658,9 +658,9 @@ function comment_nodeapi_delete($node) {
...
@@ -658,9 +658,9 @@ function comment_nodeapi_delete($node) {
}
}
/**
/**
* Implementation of hook_nodeapi_update_index().
* Implementation of hook_node_update_index().
*/
*/
functioncomment_nodeapi_update_index($node){
functioncomment_node_update_index($node){
$text='';
$text='';
$comments=db_query('SELECT subject, comment, format FROM {comment} WHERE nid = :nid AND status = :status',array(':nid'=>$node->nid,':status'=>COMMENT_PUBLISHED));
$comments=db_query('SELECT subject, comment, format FROM {comment} WHERE nid = :nid AND status = :status',array(':nid'=>$node->nid,':status'=>COMMENT_PUBLISHED));
foreach($commentsas$comment){
foreach($commentsas$comment){
...
@@ -678,17 +678,17 @@ function comment_update_index() {
...
@@ -678,17 +678,17 @@ function comment_update_index() {
}
}
/**
/**
* Implementation of hook_nodeapi_search_result().
* Implementation of hook_node_search_result().
*/
*/
functioncomment_nodeapi_search_result($node){
functioncomment_node_search_result($node){
$comments=db_query('SELECT comment_count FROM {node_comment_statistics} WHERE nid = :nid',array('nid'=>$node->nid))->fetchField();
$comments=db_query('SELECT comment_count FROM {node_comment_statistics} WHERE nid = :nid',array('nid'=>$node->nid))->fetchField();