Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 11 years ago

#5111 closed enhancement (fixed)

Hook on xprofile_delete_field_data()

Reported by: geoffroycochard's profile geoffroycochard Owned by: djpaul's profile djpaul
Milestone: 1.9 Priority: normal
Severity: minor Version: 1.7
Component: Extended Profile Keywords:
Cc:

Description

There's no action when xprofile_delete_field_data() is called ...
Cause when field is selectbox, and there's no more data to save (emty), xprofile_set_field_data() call xprofile_delete_field_data() without call action.
http://buddypress.org/support/topic/hook-on-xprofile_delete_field_data/

Attachments (1)

bp-xprofile-classes.php (44.4 KB) - added by geoffroycochard 11 years ago.

Download all attachments as: .zip

Change History (5)

#1 @johnjamesjacoby
12 years ago

  • Keywords reporter-feedback added

If I understand correctly, you're looking for action hooks in the xprofile_delete_field_data() and xprofile_set_field_data() functions?

#2 @geoffroycochard
11 years ago

Just an action hook when deleting field data because when is empty set field data call xprofile_delete_field_data() so don't call set filed data action hook ..
See attach file in line 1073

#3 @DJPaul
11 years ago

  • Keywords reporter-feedback removed
  • Milestone changed from Awaiting Review to 1.9

#4 @djpaul
11 years ago

  • Owner set to djpaul
  • Resolution set to fixed
  • Status changed from new to closed

In 7357:

Add action to BP_XProfile_ProfileData->delete() method

This is helpful for developers who wish to hook stuff in when the
xprofile_delete_field_data() function is called.

Fixes #5111, props geoffroycochard

Note: See TracTickets for help on using tickets.