parameter::set_default (public)

 parameter::set_default -package_key package_key -parameter parameter \
    -value value

Defined in packages/acs-tcl/tcl/parameter-procs.tcl

Set the default for the package parameter to the provided value. The new default will be used for new installs of the package but does not change existing package instances values.

Switches:
-package_key (required)
what package to set the parameter for
-parameter (required)
which parameter's value to set
-value (required)
what value to set said parameter to

Partial Call Graph (max 5 caller/called nodes):
%3 test_parameter__check_procs parameter__check_procs (test acs-tcl) parameter::set_default parameter::set_default test_parameter__check_procs->parameter::set_default db_dml db_dml (public) parameter::set_default->db_dml install::xml::action::set-parameter-default install::xml::action::set-parameter-default (public) install::xml::action::set-parameter-default->parameter::set_default openacs_default_theme::install::after_install openacs_default_theme::install::after_install (private) openacs_default_theme::install::after_install->parameter::set_default

Testcases:
parameter__check_procs
Source code:
    db_dml set {}
Generic XQL file:
<fullquery name="parameter::set_default.set">
    <querytext>
      update apm_parameters set default_value = :value where package_key = :package_key and parameter_name = :parameter
    </querytext>
</fullquery>
packages/acs-tcl/tcl/parameter-procs.xql

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

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

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