8, 'data-format' => 'decimal')); $content .= ' ' . st_task_scheduler_import_price_margin_type_select_tag($name.'[type]', isset($value['type']) ? $value['type'] : null); return $content; } function st_task_scheduler_import_select_tag($name, $value, array $options = []) { $imports = []; foreach (stTaskSchedulerImportConfiguration::getAll() as $configuration) { if (!$configuration->getParent()) { $imports[$configuration->getId()] = $configuration->getLabel(); } } asort($imports, SORT_NATURAL); $options['selected'] = $value; return select_tag($name, $imports, $options); }