You are here

function mailmime_required_PEAR_packages in Mail MIME 6

Same name and namespace in other branches
  1. 7 mailmime.install \mailmime_required_PEAR_packages()

Return an array of required PEAR packages and files.

Return value

An array of package items keyed by package name. Each package item is an associative array with the following keys:

  • local_path: The path relative to the local PEAR repository where the package files are (to be) installed.
  • remote_path: The url path relative to the remote PEAR repository root where the package source files may be downloaded.
  • files: An array of filenames to be read and/or downloaded.
1 call to mailmime_required_PEAR_packages()
mailmime_requirements in ./mailmime.install
Implements hook_requirements().

File

./mailmime.install, line 141
Ensures certain PEAR modules are available by downloading them if necessary.

Code

function mailmime_required_PEAR_packages() {
  return array(
    'Mail_mime' => array(
      'local_path' => 'Mail/',
      'remote_path' => 'packages/Mail_Mime/trunk/',
      'files' => array(
        'mime.php',
        'mimeDecode.php',
        'mimePart.php',
        'package.xml',
        'xmail.dtd',
        'xmail.xsl',
      ),
    ),
    'PEAR' => array(
      'local_path' => '',
      'remote_path' => 'pear-core/trunk/',
      'files' => array(
        'PEAR.php',
      ),
    ),
  );
}