You are here

function conditional_fields_install in Conditional Fields 6

Same name and namespace in other branches
  1. 5 conditional_fields.install \conditional_fields_install()
  2. 6.2 conditional_fields.install \conditional_fields_install()

Implementation of hook_install().

File

./conditional_fields.install, line 10
Install, update and uninstall functions for the Conditional Fields module.

Code

function conditional_fields_install() {
  drupal_install_schema('conditional_fields');

  // Increase module weight to 10, over fieldgroup.module which has 9.
  db_query("UPDATE {system} SET weight = 10 WHERE name = 'conditional_fields'");
  $t = get_t();
  drupal_set_message($t('Conditional Fields installed. You should now <a href="!url">give the permission</a> to administer conditional fields to the desired roles.', array(
    '!url' => url('admin/user/permissions', array(
      'fragment' => 'module-conditional_fields',
    )),
  )));
}