function imagepicker_install in Image Picker 7
Same name and namespace in other branches
- 5.2 imagepicker.install \imagepicker_install()
- 5 imagepicker.install \imagepicker_install()
- 6.2 imagepicker.install \imagepicker_install()
Implements hook_install().
File
- ./
imagepicker.install, line 14 - @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function imagepicker_install() {
include_once 'imagepicker.module';
// Create a directory structure.
$dir = imagepicker_get_files_directory();
if (file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
drupal_get_messages('status', TRUE);
}
else {
drupal_set_message(st('Directory creation for the Imagepicker module was unsuccessful.'), 'error');
}
}