return true;
}
- public function onProfileDeleteRelated(Profile $profile, &$related)
+ public function onProfileDeleteRelated(Profile $profile, array &$related)
{
$msg = new Message();
$msg->from_profile = $profile->id;
return true;
}
- public function onProfileDeleteRelated($profile, &$related)
+ public function onProfileDeleteRelated(Profile $profile, array &$related)
{
// Ostatus_profile has a 'profile_id' property, which will be used to find the object
$related[] = 'Ostatus_profile';
*
* @return boolean hook result
*/
- function onEndBlockProfile($user, $profile)
+ function onEndBlockProfile(User $user, Profile $profile)
{
if ($this->flagOnBlock && !User_flag_profile::exists($profile->id,
$user->id)) {
*
* @return boolean hook result
*/
- function onProfileDeleteRelated($profile, &$related)
+ public function onProfileDeleteRelated(Profile $profile, array &$related)
{
- $related[] = 'user_flag_profile';
+ $related[] = 'User_flag_profile';
return true;
}