From a37e60192a5f917277f652cc6210f2b227f15147 Mon Sep 17 00:00:00 2001 From: pollen8 Date: Tue, 7 Jan 2014 18:39:46 +0100 Subject: [PATCH] backport radiobutton - create options from php code --- .../radiobutton/forms/fields.xml | 57 +++++++++++++++---- .../en-GB.plg_fabrik_element_radiobutton.ini | 2 + 2 files changed, 49 insertions(+), 10 deletions(-) diff --git a/plugins/fabrik_element/radiobutton/forms/fields.xml b/plugins/fabrik_element/radiobutton/forms/fields.xml index 1a4afb9a23c..08cc8ff832a 100644 --- a/plugins/fabrik_element/radiobutton/forms/fields.xml +++ b/plugins/fabrik_element/radiobutton/forms/fields.xml @@ -2,37 +2,74 @@
- + - + - + - +
- + + - - + + - - + + - + +
+ +
+ + +
diff --git a/plugins/fabrik_element/radiobutton/language/en-GB/en-GB.plg_fabrik_element_radiobutton.ini b/plugins/fabrik_element/radiobutton/language/en-GB/en-GB.plg_fabrik_element_radiobutton.ini index 134d927c3c0..3412e333dfd 100644 --- a/plugins/fabrik_element/radiobutton/language/en-GB/en-GB.plg_fabrik_element_radiobutton.ini +++ b/plugins/fabrik_element/radiobutton/language/en-GB/en-GB.plg_fabrik_element_radiobutton.ini @@ -15,6 +15,8 @@ PLG_ELEMENT_RADIO_ONLY_ADD_LABEL_LABEL="Only add label" PLG_ELEMENT_RADIO_OPTIONS_PER_ROW_LABEL="Options per row" PLG_ELEMENT_RADIO_SAVE_NEW_ADDITIONS_DESC="If yes selected then any new sub-options created by the user are available for others to select. If NO selected you MUST select 'yes' for the 'only add label' option" PLG_ELEMENT_RADIO_SAVE_NEW_ADDITIONS_LABEL="Save new additions" +PLG_ELEMENT_RADIO_POPULATE_DESC="PHP Code to create options, should return an array of JHTML select.options,
 e.g. return array(JHTML: :_('select.option', '1', 'one'));
." +PLG_ELEMENT_RADIO_POPULATE_LABEL="Eval populate" ;front end PLG_ELEMENT_RADIO_ENTER_VALUE_LABEL="Please enter a value and/or label"