You are here

function node_gallery_install in Node Gallery 6.3

Same name and namespace in other branches
  1. 6 node_gallery.install \node_gallery_install()
  2. 6.2 node_gallery.install \node_gallery_install()
  3. 7 node_gallery.install \node_gallery_install()

Implements hook_install()

File

./node_gallery.install, line 236
Install, update and uninstall functions for the node_gallery module.

Code

function node_gallery_install() {

  // If the user manages to install this module without the prerequisite modules enabled, this will enable them.
  module_enable(node_gallery_required_modules());
  if (variable_get('node_gallery_install_defaults', TRUE)) {
    node_gallery_setup_content_types();
  }
  $ret = drupal_install_schema('node_gallery');
  if (variable_get('node_gallery_install_defaults', TRUE)) {
    node_gallery_install_imagecache_presets();
    node_gallery_set_imagecache_permissions();
    node_gallery_set_default_view_node_gallery_permissions();
  }
}