function image_install

Same name in other branches
  1. 9 core/modules/image/image.install \image_install()
  2. 8.9.x core/modules/image/image.install \image_install()
  3. 10 core/modules/image/image.install \image_install()
  4. 11.x core/modules/image/image.install \image_install()

Implements hook_install().

File

modules/image/image.install, line 11

Code

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);
}

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