8ac59801be
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
90 lines
1.7 KiB
Plaintext
90 lines
1.7 KiB
Plaintext
<?php
|
|
|
|
/**
|
|
* Disable summary on Document nodes.
|
|
*/
|
|
function commons_documents_update_7000() {
|
|
$revert = array(
|
|
'commons_documents' => array('field_instance'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Disable default frontpage promotion of Document nodes.
|
|
*/
|
|
function commons_documents_update_7001() {
|
|
$revert = array(
|
|
'commons_documents' => array('variable'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Remove unused view displays.
|
|
*/
|
|
function commons_documents_update_7002() {
|
|
$revert = array(
|
|
'commons_documents' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Standardize Browsing Widget views.
|
|
*/
|
|
function commons_documents_update_7003() {
|
|
$revert = array(
|
|
'commons_documents' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Display sticky content at top of lists.
|
|
*/
|
|
function commons_documents_update_7004() {
|
|
$revert = array(
|
|
'commons_documents' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Add .txt to the list of allowed file extensions.
|
|
*/
|
|
function commons_documents_update_7005() {
|
|
$revert = array(
|
|
'commons_documents' => array('field_instance'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Add links to node teasers in the browsing widget.
|
|
*/
|
|
function commons_documents_update_7006() {
|
|
$revert = array(
|
|
'commons_documents' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Improve the browsing widget empty text.
|
|
*/
|
|
function commons_documents_update_7007() {
|
|
$revert = array(
|
|
'commons_documents' => array('views_view'),
|
|
);
|
|
features_revert($revert);
|
|
return array();
|
|
}
|