
Apply the security fixes including: - Drupal Core - Moderately Critical - Multiple Vulnerabilities - SA-CORE-2015-001 - SA-CONTRIB-2015-079 - Chaos tool suite (ctools) - Multiple vulnerabilities The following patches were applied to 7.x-3.23 commons modules: - patches/0001-utility-links-block-install-theme.patch - patches/0002-events-page-refactor-to-pages-module.patch Installation profile got a refactor of module installation, as groups_ modules and l10n_updates deployed from an installation task to avoid memory exhausted errors of the installation process. Change-Id: I48481657124fdbbee84e1cbfec3a3a2b5f475c2c
106 lines
2.0 KiB
Plaintext
106 lines
2.0 KiB
Plaintext
<?php
|
|
|
|
/**
|
|
* Set default polls roles upon enable
|
|
*/
|
|
function commons_polls_enable() {
|
|
$revert = array(
|
|
'commons_polls' => array('og_features_permission'),
|
|
);
|
|
features_revert($revert);
|
|
|
|
$groups = og_get_all_group();
|
|
|
|
foreach ($groups AS $gid) {
|
|
commons_groups_features_permission_rebuild('commons_polls', $gid);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Disable summary on Poll nodes.
|
|
*/
|
|
function commons_polls_update_7000() {
|
|
$revert = array(
|
|
'commons_polls' => array('field_instance'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Grant users the ability to vote on polls.
|
|
*/
|
|
function commons_polls_update_7001() {
|
|
$revert = array(
|
|
'commons_polls' => array('user_permission'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Standardize Browsing Widget views.
|
|
*/
|
|
function commons_polls_update_7002() {
|
|
$revert = array(
|
|
'commons_polls' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Display sticky content at top of lists.
|
|
*/
|
|
function commons_polls_update_7003() {
|
|
$revert = array(
|
|
'commons_polls' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Add links to node teasers in the browsing widget.
|
|
*/
|
|
function commons_polls_update_7004() {
|
|
$revert = array(
|
|
'commons_polls' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Improve the browsing widget empty text.
|
|
*/
|
|
function commons_polls_update_7005() {
|
|
$revert = array(
|
|
'commons_polls' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Replace the title attribute with the title field in view displays.
|
|
*/
|
|
function commons_polls_update_7006() {
|
|
$revert = array(
|
|
'commons_polls' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Standardize browsing widget field weights.
|
|
*/
|
|
function commons_polls_update_7007() {
|
|
$revert = array(
|
|
'commons_polls' => array('field_instance'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|