You are here

function barcode_install in Barcode 7.2

Same name and namespace in other branches
  1. 6 barcode.install \barcode_install()

Implements hook_install().

File

./barcode.install, line 39
Install file for barcode module.

Code

function barcode_install() {

  // Create the default barcode directory and ensure it's writable.
  $path = file_build_uri('barcodes');
  if (file_prepare_directory($path, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {
    variable_set('barcode_default_path', $path);
  }
}