mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-05 18:20:36 -08:00
replaces existing customer control if already installed
This commit is contained in:
parent
7634aa441d
commit
9fef684c68
1 changed files with 8 additions and 2 deletions
|
|
@ -261,8 +261,14 @@ create-div's"
|
|||
(find-if (lambda (x) (equal (getf x :name) control-type-name)) *supported-controls*)))
|
||||
|
||||
(defun add-supported-controls (control-records)
|
||||
"Add a list of control-records to builder's supported controls."
|
||||
(alexandria:appendf *supported-controls* control-records))
|
||||
"Add a list of control-records to builder's supported controls. If control exists it is
|
||||
replaced."
|
||||
(dolist (r control-records)
|
||||
(setf *supported-controls*
|
||||
(append (remove-if (lambda (x)
|
||||
(equal (getf x :name) (getf r :name)))
|
||||
*supported-controls*)
|
||||
(list r)))))
|
||||
|
||||
(defun create-control (parent content control-record uid &key custom-query)
|
||||
"Return a new control based on CONTROL-RECORD as a child of PARENT"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue