acs_user::erase_portrait (public)

 acs_user::erase_portrait -user_id user_id

Defined in packages/acs-tcl/tcl/community-core-procs.tcl

Erases portrait of a user

Switches:
-user_id (required)
user_id of user whose portrait we want to delete

Testcases:
auth_authenticate, demote_promote_a_user
Source code:
    set item_id [acs_user::get_portrait_id  -user_id $user_id]

    if { $item_id != 0 } {
        # Delete the item
        content::item::delete -item_id $item_id
    }

    acs_user::flush_portrait -user_id $user_id
Generic XQL file:
packages/acs-tcl/tcl/community-core-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/community-core-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/community-core-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: