1 image_example.install | image_example_install() |
Implements hook_install().
Related topics
File
- modules/
examples/ image_example/ image_example.install, line 12 - Install, update, and uninstall functions for the image_example module.
Code
function image_example_install() {
// Set config containing the name of the style to use when the module
// outputs an image.
$config = config('image_example.settings');
$config->set('image_example_style_name', 'image_example_style');
$config->set('image_example_image_fid', FALSE);
$config->save();
}