5 * Install, update and uninstall functions for the Content Moderation module.
9 * Implements hook_requirements().
11 function content_moderation_requirements($phase) {
13 if ($phase === 'install' && \Drupal::moduleHandler()->moduleExists('workspaces')) {
14 $requirements['workspaces_incompatibility'] = [
15 'severity' => REQUIREMENT_ERROR,
16 'description' => t('Content Moderation can not be installed when Workspaces is also installed.'),
24 * Remove the 'content_revision_tracker' table.
26 function content_moderation_update_8401() {
27 $database_schema = \Drupal::database()->schema();
28 if ($database_schema->tableExists('content_revision_tracker')) {
29 $database_schema->dropTable('content_revision_tracker');