image_install

  1. image
    1. 5 image.install
    2. 7 image.install
    3. 6 image.install
    4. 5.2 image.install
  2. drupal
    1. 8
    2. 7
Versions
5 – 6 image_install()

Implements hook_install().

Code

modules/image/image.install, line 11

<?php
function image_install() {
  // Create the styles directory and ensure it's writable.
  $directory = file_default_scheme() . '://styles';
  file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
}
?>