You are here

function term_permissions_install in Taxonomy Term Permissions 6

Implementation of hook_install()

File

./term_permissions.install, line 7

Code

function term_permissions_install() {
  $ret = array();
  $results = drupal_install_schema('term_permissions');
  $install_pass = TRUE;
  foreach ($results as $result) {
    if (!$result['success']) {
      $install_pass = FALSE;
    }
  }
  if (!$install_pass) {
    drupal_set_message(t('There was an error installing the Taxonomy Term Permissions module. The <a href="@watchdog-url">error log</a> may have more information about the error.', array(
      '@watchdog-url' => url('admin/reports/dblog'),
    )), 'error');
  }
}