You are here

function mailmime_init in Mail MIME 6

Same name and namespace in other branches
  1. 8.2 mailmime.module \mailmime_init()
  2. 6.2 mailmime.module \mailmime_init()
  3. 7.2 mailmime.module \mailmime_init()
  4. 7 mailmime.module \mailmime_init()

Implements hook_init() to add the local PEAR repository to the include path.

File

./mailmime.module, line 6

Code

function mailmime_init() {
  set_include_path(implode(PATH_SEPARATOR, array_unique(array_merge(array(
    file_directory_path() . '/PEAR',
  ), explode(PATH_SEPARATOR, get_include_path())))));
}