Skip to content

Commit a50dd39

Browse files
Moved permission to search_api.permissions.yml.
1 parent 7b46f69 commit a50dd39

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

Diff for: search_api.module

-12
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ function search_api_help($route_name) {
2121
}
2222
}
2323

24-
/**
25-
* Implements hook_permission().
26-
*/
27-
function search_api_permission() {
28-
return array(
29-
'administer search_api' => array(
30-
'title' => t('Administer Search API'),
31-
'description' => t('Create and configure Search API servers and indexes.'),
32-
),
33-
);
34-
}
35-
3624
/**
3725
* Implements hook_cron().
3826
*

Diff for: search_api.permissions.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'administer search_api':
2+
title: 'Administer Search API'
3+
description: 'Create and configure Search API servers and indexes.'

0 commit comments

Comments
 (0)