summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-10 20:22:57 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-10 20:22:57 +0000
commit41019a83628224ffe49f782688c81b889587b2b5 (patch)
tree18ba0b85f63129ef9fe66912ee4f71e3e7344d14 /modules
parent3340e8cfa56a14433bece5b0913fe8c8a0c974d1 (diff)
downloadbrdo-41019a83628224ffe49f782688c81b889587b2b5.tar.gz
brdo-41019a83628224ffe49f782688c81b889587b2b5.tar.bz2
- Patch #708574 by jhodgdon: hook_archiver_info_alter() was not documented.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index da9058d23..8ebf9d6c0 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -2741,6 +2741,8 @@ function hook_action_info_alter(&$actions) {
* - weight: This optional key specifies the weight of this archiver.
* When mapping file extensions to archivers, the first archiver by
* weight found that supports the requested extension will be used.
+ *
+ * @see hook_archiver_info_alter()
*/
function hook_archiver_info() {
return array(
@@ -2751,6 +2753,18 @@ function hook_archiver_info() {
);
}
+/**
+ * Alter archiver information declared by other modules.
+ *
+ * See hook_archiver_info() for a description of archivers and the archiver
+ * information structure.
+ *
+ * @param $info
+ * Archiver information to alter (return values from hook_archiver_info()).
+ */
+function hook_archiver_info_alter(&$info) {
+ $info['tar']['extensions'][] = 'tgz';
+}
/**
* Defines additional date types.