|
@@ -41,18 +41,18 @@ function serviceAddon_UsageUpdate(array $params) {
|
|
|
|
|
|
|
|
function serviceAddon_ConfigOptions(array $params) {
|
|
function serviceAddon_ConfigOptions(array $params) {
|
|
|
$response = localAPI('GetEmailTemplates');
|
|
$response = localAPI('GetEmailTemplates');
|
|
|
- $emailTemplates = array('0' => 'none');
|
|
|
|
|
|
|
+ $emailTemplates = array('none');
|
|
|
foreach ($response['emailtemplates']['emailtemplate'] as $emailTemplate) {
|
|
foreach ($response['emailtemplates']['emailtemplate'] as $emailTemplate) {
|
|
|
array_push($emailTemplates, $emailTemplate['name']);
|
|
array_push($emailTemplates, $emailTemplate['name']);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $configOptions = array(["Create_Mail" => [
|
|
|
|
|
|
|
+ $configOptions = array("Create_Mail" => [
|
|
|
"FriendlyName" => "Create Action E-Mail Template",
|
|
"FriendlyName" => "Create Action E-Mail Template",
|
|
|
"Type" => "dropdown", # Dropdown Choice of Options
|
|
"Type" => "dropdown", # Dropdown Choice of Options
|
|
|
"Options" => $emailTemplates,
|
|
"Options" => $emailTemplates,
|
|
|
"Description" => "E-Mail Template auswählen",
|
|
"Description" => "E-Mail Template auswählen",
|
|
|
- "Default" => "0",
|
|
|
|
|
- ]]);
|
|
|
|
|
|
|
+ "Default" => "option1",
|
|
|
|
|
+ ]);
|
|
|
|
|
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'iServiceAddon',
|
|
'iServiceAddon',
|
|
@@ -66,9 +66,9 @@ function serviceAddon_ConfigOptions(array $params) {
|
|
|
'Dropdown Field' => array(
|
|
'Dropdown Field' => array(
|
|
|
'Type' => 'dropdown',
|
|
'Type' => 'dropdown',
|
|
|
'Options' => array(
|
|
'Options' => array(
|
|
|
- 'option1' => 'Display Value 1',
|
|
|
|
|
- 'option2' => 'Second Option',
|
|
|
|
|
- 'option3' => 'Another Option',
|
|
|
|
|
|
|
+ 'Display Value 1',
|
|
|
|
|
+ 'Second Option',
|
|
|
|
|
+ 'Another Option',
|
|
|
),
|
|
),
|
|
|
'Description' => 'Choose one',
|
|
'Description' => 'Choose one',
|
|
|
)
|
|
)
|