From 0b71c0caa0dd6a70c1a545ed9706b2cced93a24f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 8 Nov 2009 19:11:56 +0000 Subject: #622534 by yched: Cleanup hook_field_attach_*() and hook_field_storage_*() space. --- modules/forum/forum.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index f4142de4a..61b68c863 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -420,9 +420,9 @@ function forum_comment_delete($comment) { } /** - * Implement hook_field_attach_pre_insert(). + * Implement hook_field_storage_pre_insert(). */ -function forum_field_attach_pre_insert($obj_type, $object, $skip_fields) { +function forum_field_storage_pre_insert($obj_type, $object, &$skip_fields) { if ($obj_type == 'node' && $object->status && _forum_node_check_node_type($object)) { $query = db_insert('forum_index')->fields(array('nid', 'title', 'tid', 'sticky', 'created', 'comment_count', 'last_comment_timestamp')); foreach ($object->taxonomy_forums as $language) { @@ -443,9 +443,9 @@ function forum_field_attach_pre_insert($obj_type, $object, $skip_fields) { } /** - * Implement hook_field_attach_pre_update(). + * Implement hook_field_storage_pre_update(). */ -function forum_field_attach_pre_update($obj_type, $object, $skip_fields) { +function forum_field_storage_pre_update($obj_type, $object, &$skip_fields) { $first_call = &drupal_static(__FUNCTION__, array()); if ($obj_type == 'node' && $object->status && _forum_node_check_node_type($object)) { -- cgit v1.2.3