groups/modules/commons/commons_q_a/commons_q_a.install
Marton Kiss 8ac59801be Refactor commons build process
Update commons modules to release 7.12, and move the codebase under
modules/commons instead of constant fetching from remote repository.
The commons.make file removed so it is not required to rebuild
groups distribution.

Change-Id: I3be393ba1af34427e2915b18ab1ad718fd4e54db
2014-05-28 15:58:33 +02:00

150 lines
3.1 KiB
Plaintext

<?php
/**
* Update the Rate module settings for changes to the Up/Down widget.
*/
function commons_q_a_update_3100() {
$revert = array(
'commons_like' => array('variable'),
);
features_revert($revert);
return array();
}
/**
* Disable comments on Question nodes. Don't feature answers by default
* (http://drupal.org/node/1921498).
*/
function commons_q_a_update_3101() {
$revert = array(
'commons_q_a' => array('variable'),
);
features_revert($revert);
return array();
}
/**
* Disable summary on Question/Answer nodes.
*/
function commons_q_a_update_3102() {
$revert = array(
'commons_q_a' => array('field_instance'),
);
features_revert($revert);
return array();
}
/**
* Update the Commons Q&A widget per http://drupal.org/node/1940644.
*/
function commons_q_a_update_3103() {
// The Commons Q&A widget is defined via a hook_strongarm_alter()
// implementation altering rate_widgets variable, defined by commons_like.
$revert = array(
'commons_like' => array('variable'),
);
features_revert($revert);
return array();
}
/**
* Disable comments on Answer nodes.
*/
function commons_q_a_update_3104() {
$revert = array(
'commons_q_a' => array('variable'),
);
features_revert($revert);
return array();
}
/**
* Link the 'Answer added' activity stream message to the Answer node as
* displayed on the question per http://drupal.org/node/1946120.
*/
function commons_q_a_update_3105() {
$revert = array(
'commons_q_a' => array('field_instance', 'message_type', 'variable'),
);
features_revert($revert);
return array();
}
/**
* Use the standard user picture image size.
*/
function commons_q_a_update_3106() {
$revert = array(
'commons_q_a' => array('message_type'),
);
features_revert($revert);
return array();
}
/**
* Remove the "Like" widget from answer nodes, since they have a +/- widget.
* Related issue: https://drupal.org/node/1935312.
*/
function commons_q_a_update_3107() {
$revert = array(
'commons_like' => array('variable'),
);
features_revert($revert);
return array();
}
/**
* Standardize Browsing Widget views.
*/
function commons_q_a_update_3108() {
$revert = array(
'commons_q_a' => array('views_view'),
);
features_revert($revert);
return array();
}
/**
* Display sticky content at top of lists.
*/
function commons_q_a_update_3109() {
$revert = array(
'commons_q_a' => array('views_view'),
);
features_revert($revert);
return array();
}
/**
* Indicate in the view that empty answers text is overridden by commons_q_a.
*/
function commons_q_a_update_3110() {
$revert = array(
'commons_q_a' => array('views_view'),
);
features_revert($revert);
return array();
}
/**
* Change the Answer URL alias to be a subpath of the question.
*/
function commons_q_a_update_3111() {
$revert = array(
'commons_q_a' => array('variable'),
);
features_revert($revert);
return array();
}
/**
* Improve the browsing widget empty text.
*/
function commons_q_a_update_3112() {
$revert = array(
'commons_q_a' => array('views_view'),
);
features_revert($revert);
return array();
}