* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Helper\ModuleHelper; $app = Factory::getApplication(); $form = $displayData->getForm(); $input = $app->input; $fields = $displayData->get('fields') ?: array( array('parent', 'parent_id'), array('published', 'state', 'enabled'), array('category', 'catid'), 'featured', 'sticky', 'access', 'language', 'tags', 'note', 'version_note', ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); if (!ModuleHelper::isAdminMultilang()) { $hiddenFields[] = 'language'; $form->setFieldAttribute('language', 'default', '*'); } $html = array(); $html[] = '
'; echo implode('', $html);