disable voting in blocks, layouts and webpages

This commit is contained in:
Mario Vavti 2015-04-29 21:36:53 +02:00
parent e56b8fdfaf
commit 310d122901
4 changed files with 7 additions and 2 deletions

View File

@ -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']) {

View File

@ -95,6 +95,7 @@ function blocks_content(&$a) {
'ptlabel' => t('Block Name'),
'profile_uid' => intval($owner),
'expanded' => true,
'novoting' => true
);
if($_REQUEST['title'])

View File

@ -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'])

View File

@ -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'])