sbenjamin

CFC:DeleteValue

Jul 27th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cffunction name="deleteValue" access="remote" returntype="any" returnFormat="json">
  2.     <cfargument name="name" required="yes">
  3.     <cfargument name="cfctoken" required="yes">
  4.     <cfset var result = structNew()>
  5.    
  6.     <cfif jsonSecurity(arguments.cfctoken)>
  7.         <cfset var deleteStatus = structDelete(session.festBuilder,arguments.name,"yes")>
  8.         <cfset result["success"] = deleteStatus>
  9.     <cfelse>
  10.         <cfset result["success"] = false>
  11.     </cfif>
  12.  
  13.     <cfreturn result>
  14. </cffunction>
Advertisement
Add Comment
Please, Sign In to add comment