[ticket/16352] Deprecate phpbb_delete_user_pms

PHPBB3-16352
This commit is contained in:
rubencm 2020-02-03 02:20:35 +00:00
parent 2fea7969d3
commit 96a7e04ea5
2 changed files with 21 additions and 19 deletions

View file

@ -712,3 +712,24 @@ function phpbb_build_hidden_fields_for_query_params($request, $exclude = null)
} }
return $hidden; return $hidden;
} }
/**
* Delete all PM(s) for a given user and delete the ones without references
*
* @param int $user_id ID of the user whose private messages we want to delete
*
* @return boolean False if there were no pms found, true otherwise.
*
* @deprecated 3.2.10 (To be removed 4.0.0)
*/
function phpbb_delete_user_pms($user_id)
{
$user_id = (int) $user_id;
if (!$user_id)
{
return false;
}
return phpbb_delete_users_pms(array($user_id));
}

View file

@ -1179,25 +1179,6 @@ function delete_pm($user_id, $msg_ids, $folder_id)
return true; return true;
} }
/**
* Delete all PM(s) for a given user and delete the ones without references
*
* @param int $user_id ID of the user whose private messages we want to delete
*
* @return boolean False if there were no pms found, true otherwise.
*/
function phpbb_delete_user_pms($user_id)
{
$user_id = (int) $user_id;
if (!$user_id)
{
return false;
}
return phpbb_delete_users_pms(array($user_id));
}
/** /**
* Delete all PM(s) for given users and delete the ones without references * Delete all PM(s) for given users and delete the ones without references
* *