CoreFiles by mySites.guru
edit_positions.php32 lines, 933 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
ba2f581945809e73db16d1c5ecae48c1
sha1
0b1a3d1626ea82689f91f561022bd78bb7c574ee
sha256
4de1d7f9d31452575763689597c6307da30cf65b1841b764592bc6461e3e8f87
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;

$clientId         = $this->item->client_id;
$state            = 1;
$selectedPosition = $this->item->position;
$positions        = HTMLHelper::_('modules.positions', $clientId, $state, $selectedPosition);

// Add custom position to options
$customGroupText = Text::_('COM_MODULES_CUSTOM_POSITION');

// Build field
$attr = array(
	'id'          => 'jform_position',
	'list.select' => $this->item->position,
	'list.attr'   => 'class="chosen-custom-value"',
);

JHtml::_('formbehavior.chosen', '#jform_position');

echo HTMLHelper::_('select.groupedlist', $positions, 'jform[position]', $attr);

No other release has this exact content. See every version of this file.