add option to mimetype selector so you can change the element name in case you end up with two of these suckers on the same page

This commit is contained in:
zotlabs 2017-09-12 23:25:19 -07:00
parent 796228b7ad
commit 0e6d84e207

View file

@ -1786,7 +1786,7 @@ function layout_select($channel_id, $current = '') {
}
function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null) {
function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null, $element = 'mimetype') {
$x = (($choices) ? $choices : [
'text/bbcode',
@ -1807,7 +1807,7 @@ function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null)
}
$o = replace_macros(get_markup_template('field_select_raw.tpl'), array(
'$field' => array('mimetype', t('Page content type'), $selected, '', $options)
'$field' => array( $element, t('Page content type'), $selected, '', $options)
));
return $o;