diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 19:11:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 19:11:56 +0000 |
commit | 0b71c0caa0dd6a70c1a545ed9706b2cced93a24f (patch) | |
tree | 57a56079fc9d6892434f1bcfafab1b91c4c6c1be /modules/forum | |
parent | a6e707cd8475a35e4117fe05ec91212c9a011b5d (diff) | |
download | brdo-0b71c0caa0dd6a70c1a545ed9706b2cced93a24f.tar.gz brdo-0b71c0caa0dd6a70c1a545ed9706b2cced93a24f.tar.bz2 |
#622534 by yched: Cleanup hook_field_attach_*() and hook_field_storage_*() space.
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.module | 8 |
1 files changed, 4 insertions, 4 deletions
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)) { |