diff --git a/addtoany.module b/addtoany.module index 699b15b2f2997ab3d1ab4210e386010b43b373bf..595bea1cc43b612ad54d3e56fec7953a94c81fee 100644 --- a/addtoany.module +++ b/addtoany.module @@ -11,18 +11,6 @@ use Drupal\Core\Url; use Drupal\Component\Utility\Html; use Drupal\Component\Utility\UrlHelper; -/** - * Implements hook_permission(). - */ -function addtoany_permission() { - return array( - 'administer addtoany' => array( - 'title' => t('Administer addtoany'), - 'description' => t('Perform administration tasks for the AddToAny module.'), - ), - ); -} - /** * Implements hook_theme(). */ diff --git a/addtoany.permissions.yml b/addtoany.permissions.yml new file mode 100644 index 0000000000000000000000000000000000000000..6b8be1e0579048629438579c4e0e474558ef9206 --- /dev/null +++ b/addtoany.permissions.yml @@ -0,0 +1,4 @@ +# Permissions for the addtoany module +'administer addtoany': + title: 'Administer AddToAny' + description: 'Perform administration tasks for the AddToAny module.'