disable voting in blocks, layouts and webpages
This commit is contained in:
parent
e56b8fdfaf
commit
310d122901
@ -1095,6 +1095,8 @@ function status_editor($a, $x, $popup = false) {
|
||||
// $plaintext = false;
|
||||
|
||||
$voting = feature_enabled(local_channel(), 'consensus_tools');
|
||||
if(x($x, 'novoting'))
|
||||
$voting = false;
|
||||
|
||||
$mimeselect = '';
|
||||
if(array_key_exists('mimetype', $x) && $x['mimetype']) {
|
||||
|
@ -95,6 +95,7 @@ function blocks_content(&$a) {
|
||||
'ptlabel' => t('Block Name'),
|
||||
'profile_uid' => intval($owner),
|
||||
'expanded' => true,
|
||||
'novoting' => true
|
||||
);
|
||||
|
||||
if($_REQUEST['title'])
|
||||
|
@ -121,7 +121,8 @@ function layouts_content(&$a) {
|
||||
'ptlabel' => t('Layout Name'),
|
||||
'profile_uid' => intval($owner),
|
||||
'expanded' => true,
|
||||
'placeholdertitle' => t('Layout Description (Optional)')
|
||||
'placeholdertitle' => t('Layout Description (Optional)'),
|
||||
'novoting' => true
|
||||
);
|
||||
|
||||
if($_REQUEST['title'])
|
||||
|
@ -113,7 +113,8 @@ function webpages_content(&$a) {
|
||||
'profile_uid' => intval($owner),
|
||||
'mimetype' => $mimetype,
|
||||
'layout' => $layout,
|
||||
'expanded' => true
|
||||
'expanded' => true,
|
||||
'novoting' => true
|
||||
);
|
||||
|
||||
if($_REQUEST['title'])
|
||||
|
Reference in New Issue
Block a user