function simple_instagram_feed_install in Simple Instagram Feed Block 1.0.x
Same name and namespace in other branches
- 8.3 simple_instagram_feed.install \simple_instagram_feed_install()
Implements hook_install().
File
- ./
simple_instagram_feed.install, line 13 - Install, update and uninstall for simple instagram feed module.
Code
function simple_instagram_feed_install() {
// Create the simple_instagram_feed directory and ensure it's writable.
$directory = file_default_scheme() . '://simple_instagram_feed';
$mode = isset($GLOBALS['install_state']['mode']) ? $GLOBALS['install_state']['mode'] : NULL;
file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS, $mode);
}