You are here

function _node_gallery_install_default in Node Gallery 6.2

Same name and namespace in other branches
  1. 6 node_gallery.install \_node_gallery_install_default()
1 call to _node_gallery_install_default()
node_gallery_install in ./node_gallery.install
Implementation of hook_install()

File

./node_gallery.install, line 171
Node gallery install file.

Code

function _node_gallery_install_default() {

  /* Set the defaults for a node_gallery relationship */
  $default = array(
    'gallery_type' => 'node_gallery_gallery',
    'image_type' => 'node_gallery_image',
    'name' => 'Node Gallery Default',
    'gallery_directory' => '',
    'default_cover' => '',
    'number_uploads' => '5',
    'display_fields' => array(
      'title' => 'title',
      'body_field' => 'body_field',
    ),
    'content_display' => 'image',
    'view_original' => '0',
    'view_original_text' => 'Download the Original Image',
    'lightbox2' => 'node-gallery-display',
    'image_size' => array(
      'cover' => 'node-gallery-cover',
      'thumbnail' => 'node-gallery-thumbnail',
      'preview' => 'node-gallery-display',
    ),
    'teaser' => array(
      'gallery_display_type' => 'thumbnails',
      'thumbnails_num' => '6',
      'lightbox2_gallery' => 'node-gallery-display',
      'image' => 'node-gallery-thumbnail',
    ),
    'upload_limits' => array(
      'general' => array(
        'file_extension' => 'jpg jpeg gif png',
        'file_resolution' => '0',
        'file_max_size' => '1',
        'user_max_size' => '2',
      ),
      'roles' => array(
        3 => 'editor',
      ),
      'role_3' => array(
        'role_name' => 'editor',
        'file_max_size' => '1',
        'user_max_size' => '2',
      ),
    ),
    'gallery' => array(
      'gallery_display_type' => 'thumbnails',
      'lightbox2_gallery_preset' => 'node-gallery-display',
    ),
  );
  variable_set('node_gallery_node_gallery_gallery', $default);
  variable_set('node_options_node_gallery_image', array(
    'status',
  ));
}