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:
parent
796228b7ad
commit
0e6d84e207
@ -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 : [
|
$x = (($choices) ? $choices : [
|
||||||
'text/bbcode',
|
'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(
|
$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;
|
return $o;
|
||||||
|
Reference in New Issue
Block a user