twitter_bootstrap_modal_nivo.install in Twitter Bootstrap Modal 7.3
twitter_bootstrap_modal_nivo.install Installation and update functions for the DHTML Menu module.
File
twitter_bootstrap_modal_nivo/twitter_bootstrap_modal_nivo.installView source
<?php
// $Id: dhtml_menu.install,v 1.17 2010/08/16 10:39:57 arancaytar Exp $
/**
* @file twitter_bootstrap_modal_nivo.install
* Installation and update functions for the DHTML Menu module.
*/
/**
* Default settings storage.
*/
function _twitter_bootstrap_modal_nivo_defaults() {
return array(
'trigger' => '',
'images' => array(
'image_style' => FALSE,
'image_style_slide' => '',
'image_style_thumb' => '',
'image_caption' => TRUE,
),
'effects' => array(
'effect' => 'random',
'effect_properties' => array(
'slices' => '15',
'box_columns' => '8',
'box_rows' => '4',
),
'speed' => '500',
'pause_on_hover' => TRUE,
),
'navigation' => array(
'directional_navigation' => TRUE,
'image_navigation' => FALSE,
'next_text' => 'Prev',
'previous_text' => 'Next',
'control_navigation' => TRUE,
'control_nav_thumbs' => FALSE,
'manual_advance' => FALSE,
'pause_time' => '3000',
),
'visibility' => array(
'visibility' => 0,
'pages' => '',
),
);
}
/**
* Implementation of hook_install().
* This will create our system variable defaults.
* The benefit is that we do not need to pass defaults
* to variable_get(), which allows centralization of defaults.
*/
function twitter_bootstrap_modal_nivo_install() {
variable_set('twitter_bootstrap_modal_nivo_settings', _twitter_bootstrap_modal_nivo_defaults());
}
/**
* Implementation of hook_uninstall().
* Only clears our variables, so a fresh installation can repopulate them.
*/
function twitter_bootstrap_modal_nivo_uninstall() {
// Settings.
variable_del('twitter_bootstrap_modal_nivo_settings');
}
Functions
Name![]() |
Description |
---|---|
twitter_bootstrap_modal_nivo_install | Implementation of hook_install(). This will create our system variable defaults. The benefit is that we do not need to pass defaults to variable_get(), which allows centralization of defaults. |
twitter_bootstrap_modal_nivo_uninstall | Implementation of hook_uninstall(). Only clears our variables, so a fresh installation can repopulate them. |
_twitter_bootstrap_modal_nivo_defaults | Default settings storage. |