44 * @file
55 * classy_paragraphs_ui.module
66 */
7+
8+ /**
9+ * Implements hook_permission().
10+ */
11+ function classy_paragraphs_ui_permission() {
12+ return array(
13+ 'administer classy paragraphs ui' => array(
14+ 'title' => t('Administer Classy Paragraphs'),
15+ ),
16+ );
17+ }
718
819/**
920 * Implements hook_menu().
@@ -14,30 +25,30 @@ function classy_paragraphs_ui_menu() {
1425 'description' => 'Configuration for Classy Paragraphs',
1526 'page callback' => 'backdrop_get_form',
1627 'page arguments' => array('classy_paragraphs_ui_edit', 4),
17- 'access arguments' => array('administer users '),
28+ 'access arguments' => array('administer classy paragraphs ui '),
1829 );
1930
2031 $items['admin/config/content/classy-paragraphs-ui/add'] = array(
2132 'title' => 'Add new class',
2233 'description' => 'Configuration for Classy Paragraphs',
2334 'page callback' => 'backdrop_get_form',
2435 'page arguments' => array('classy_paragraphs_ui_add'),
25- 'access arguments' => array('administer users '),
36+ 'access arguments' => array('administer classy paragraphs ui '),
2637 'type' => MENU_LOCAL_ACTION,
2738 );
2839 $items['admin/config/content/classy-paragraphs-ui/%/delete'] = array(
2940 'title' => 'Classy Paragraphs UI ',
3041 'description' => 'Configuration for Classy Paragraphs',
3142 'page callback' => 'backdrop_get_form',
3243 'page arguments' => array('classy_paragraphs_ui_delete', 4),
33- 'access arguments' => array('administer users '),
44+ 'access arguments' => array('administer classy paragraphs ui '),
3445 );
3546
3647 $items['admin/config/content/classy-paragraphs-ui'] = array(
3748 'title' => 'Classy Paragraphs UI ',
3849 'description' => 'Configuration for Classy Paragraphs',
3950 'page callback' => 'classy_paragraphs_ui_list',
40- 'access arguments' => array('administer users '),
51+ 'access arguments' => array('administer classy paragraphs ui '),
4152 'type' => MENU_NORMAL_ITEM,
4253 );
4354
0 commit comments