RTMediaAlbum::update_global PHP Method

update_global() public method

Wrapper method to update details for any global album
public update_global ( integer $id, string $title = '' ) : boolean
$id integer
$title string
return boolean
    function update_global($id, $title = '')
    {
        /**
         * Only admin can update global albums
         */
        $super_user_ids = get_super_admins();
        if (in_array($this->get_current_author(), array_map('intval', $super_user_ids), true)) {
            return $this->update($id, $title);
        } else {
            return false;
        }
    }