function imagepicker_install in Image Picker 6.2
Same name and namespace in other branches
- 5.2 imagepicker.install \imagepicker_install()
- 5 imagepicker.install \imagepicker_install()
- 7 imagepicker.install \imagepicker_install()
Implementation of hook_install().
File
- ./
imagepicker.install, line 11 - imagepicker install, update and uninstall functions
Code
function imagepicker_install() {
include_once 'imagepicker.module';
// Create a directory structure.
$dir = imagepicker_get_files_directory();
if (file_check_directory($dir, TRUE)) {
drupal_get_messages('status', TRUE);
}
else {
drupal_set_message(t('Directory creation for the Imagepicker module was unsuccessful.'), 'error');
}
// Create tables.
drupal_install_schema('imagepicker');
}