/** * Updates a license * * @param int $lid ["path","0"] * The id of the license to update * @param object $license ["data"] * The license object * @return object * * @Access(callback='user_access', args={'update content licenses'}, appendArgs=false) */ public static function update($lid, $license) { $res = array(); $event['lid'] = $lid; $res['lid'] = ContentLicense::write($license); $res['uri'] = services_resource_uri(array('content_license', $res['lid'])); return (object) $res; }