You are here

function certificate_install in Certificate 7.2

Same name and namespace in other branches
  1. 8.3 certificate.install \certificate_install()
  2. 6.2 certificate.install \certificate_install()
  3. 6 certificate.install \certificate_install()
  4. 7.3 certificate.install \certificate_install()
  5. 3.x certificate.install \certificate_install()

Implements hook_install().

This hook is called the first time the module is installed. Unless it is explicitly uninstalled, disabling and re-enabling will not trigger this hook a second time.

File

./certificate.install, line 124
Install the Certificate module.

Code

function certificate_install() {

  // Set certificate variables.
  variable_set('node_options_certificate', array(
    0 => 'revision',
  ));
  variable_set('comment_certificate', 0);
  node_types_rebuild();
  $types = node_type_get_types();
  node_add_body_field($types['certificate'], 'Body');
}