function system_archiver_info

Implements hook_archiver_info().

File

modules/system/system.module, line 4011

Code

function system_archiver_info() {
    $archivers['tar'] = array(
        'class' => 'ArchiverTar',
        'extensions' => array(
            'tar',
            'tgz',
            'tar.gz',
            'tar.bz2',
        ),
    );
    if (function_exists('zip_open')) {
        $archivers['zip'] = array(
            'class' => 'ArchiverZip',
            'extensions' => array(
                'zip',
            ),
        );
    }
    return $archivers;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.