Skip to content
Snippets Groups Projects

Issue #3342241: Implement hook_help()

1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 15
0
@@ -16,6 +16,21 @@ use Drupal\taxonomy\VocabularyAccessControlHandler as OriginalVocabularyAccessCo
use Drupal\taxonomy_access_fix\TermAccessControlHandler;
use Drupal\taxonomy_access_fix\TermSelection;
use Drupal\taxonomy_access_fix\VocabularyAccessControlHandler;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function taxonomy_access_fix_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.taxonomy_access_fix':
$output = '<h2>' . t('About') . '</h2>';
$output .= '<p>' .t('Taxonomy Access Fix module enhances the access handling functionality of Drupal Core Taxonomy module. This module introduces new permissions on a per-vocabulary basis, including the ability to "View terms in VOCABULARY" and "Reorder terms in VOCABULARY" for published terms.') . '</p>';
$output .= '<p>' .t('Furthermore, the module improves the user experience by removing vocabularies from the vocabulary overview page if the user does not have permission to create, delete, edit, or reorder terms within the vocabulary.') . '</p>';
$output .= '<p>' .t('Taxonomy Access Fix module is particularly useful when more fine-grained permissions are required for taxonomy terms than those provided by Drupal Core. For example, if certain roles should be restricted from viewing terms within a specific vocabulary, this module provides the necessary controls to accomplish that goal.') . '</p>';
return $output;
}
}
/**
* Implements hook_entity_type_alter().
Loading