paragraphs_pack_juicebox.install in Paragraphs pack 7
Install, update and uninstall functions for the paragraphs_pack_juicebox module.
File
modules/paragraphs_pack_juicebox/paragraphs_pack_juicebox.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the paragraphs_pack_juicebox module.
*/
/**
* Implements hook_install().
*/
function paragraphs_pack_juicebox_install() {
paragraphs_pack_create_paragraph(PP_BUNDLE_JUICEBOX, 'Juicebox Gallery');
paragraphs_pack_add_field_title(PP_BUNDLE_JUICEBOX, 'Title');
paragraphs_pack_add_field_image(PP_BUNDLE_JUICEBOX, 'Juicebox Image');
// Configure Juicebox on default view mode.
$instance = field_info_instance(PP_PARAGRAPH_TYPE, PP_FIELD_IMAGE, PP_BUNDLE_JUICEBOX);
$instance['display']['default'] = paragraphs_pack_juicebox_widget_configuration();
field_update_instance($instance);
}
Functions
Name | Description |
---|---|
paragraphs_pack_juicebox_install | Implements hook_install(). |