Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e4a4b7cc
Commit
e4a4b7cc
authored
Jul 05, 2009
by
Dries
Browse files
- Patch
#506976
by catch: rename hook_perm to hook_permission.
parent
4a4a6570
Changes
30
Hide whitespace changes
Inline
Side-by-side
modules/aggregator/aggregator.module
View file @
e4a4b7cc
...
...
@@ -270,9 +270,9 @@ function _aggregator_has_categories() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
aggregator_perm
()
{
function
aggregator_perm
ission
()
{
return
array
(
'administer news feeds'
=>
array
(
'title'
=>
t
(
'Administer news feeds'
),
...
...
modules/block/block.module
View file @
e4a4b7cc
...
...
@@ -105,9 +105,9 @@ function block_theme() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
block_perm
()
{
function
block_perm
ission
()
{
return
array
(
'administer blocks'
=>
array
(
'title'
=>
t
(
'Administer blocks'
),
...
...
modules/blog/blog.module
View file @
e4a4b7cc
...
...
@@ -20,9 +20,9 @@ function blog_node_info() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
blog_perm
()
{
function
blog_perm
ission
()
{
return
node_list_permissions
(
'blog'
);
}
...
...
modules/blogapi/blogapi.module
View file @
e4a4b7cc
...
...
@@ -21,9 +21,9 @@ function blogapi_help($path, $arg) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
blogapi_perm
()
{
function
blogapi_perm
ission
()
{
return
array
(
'administer content with blog api'
=>
array
(
'title'
=>
t
(
'Administer content with blog API'
),
...
...
modules/book/book.module
View file @
e4a4b7cc
...
...
@@ -37,9 +37,9 @@ function book_theme() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
book_perm
()
{
function
book_perm
ission
()
{
return
array
(
'administer book outlines'
=>
array
(
'title'
=>
t
(
'Administer book outlines'
),
...
...
modules/comment/comment.module
View file @
e4a4b7cc
...
...
@@ -224,9 +224,9 @@ function comment_node_type($op, $info) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
comment_perm
()
{
function
comment_perm
ission
()
{
return
array
(
'administer comments'
=>
array
(
'title'
=>
t
(
'Administer comments'
),
...
...
modules/contact/contact.module
View file @
e4a4b7cc
...
...
@@ -33,9 +33,9 @@ function contact_help($path, $arg) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
contact_perm
()
{
function
contact_perm
ission
()
{
return
array
(
'administer site-wide contact form'
=>
array
(
'title'
=>
t
(
'Administer site-wide contact form'
),
...
...
modules/filter/filter.module
View file @
e4a4b7cc
...
...
@@ -145,9 +145,9 @@ function filter_admin_format_title($format) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
filter_perm
()
{
function
filter_perm
ission
()
{
return
array
(
'administer filters'
=>
array
(
'title'
=>
t
(
'Administer filters'
),
...
...
modules/forum/forum.module
View file @
e4a4b7cc
...
...
@@ -419,9 +419,9 @@ function forum_access($op, $node, $account) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
forum_perm
()
{
function
forum_perm
ission
()
{
$perms
=
array
(
'administer forums'
=>
array
(
'title'
=>
t
(
'Administer forums'
),
...
...
modules/locale/locale.module
View file @
e4a4b7cc
...
...
@@ -184,9 +184,9 @@ function locale_inc_callback() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
locale_perm
()
{
function
locale_perm
ission
()
{
return
array
(
'administer languages'
=>
array
(
'title'
=>
t
(
'Administer languages'
),
...
...
modules/menu/menu.module
View file @
e4a4b7cc
...
...
@@ -33,9 +33,9 @@ function menu_help($path, $arg) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
menu_perm
()
{
function
menu_perm
ission
()
{
return
array
(
'administer menu'
=>
array
(
'title'
=>
t
(
'Administer menu'
),
...
...
modules/node/node.module
View file @
e4a4b7cc
...
...
@@ -1261,9 +1261,9 @@ function theme_node_log_message($log) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
node_perm
()
{
function
node_perm
ission
()
{
$perms
=
array
(
'administer content types'
=>
array
(
'title'
=>
t
(
'Administer content types'
),
...
...
modules/path/path.module
View file @
e4a4b7cc
...
...
@@ -256,9 +256,9 @@ function path_form_alter(&$form, $form_state, $form_id) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
path_perm
()
{
function
path_perm
ission
()
{
return
array
(
'administer url aliases'
=>
array
(
'title'
=>
t
(
'Administer URL aliases'
),
...
...
modules/php/php.module
View file @
e4a4b7cc
...
...
@@ -22,9 +22,9 @@ function php_help($path, $arg) {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
php_perm
()
{
function
php_perm
ission
()
{
return
array
(
'use PHP for settings'
=>
array
(
'title'
=>
t
(
'Use PHP for settings'
),
...
...
modules/poll/poll.module
View file @
e4a4b7cc
...
...
@@ -51,9 +51,9 @@ function poll_theme() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
poll_perm
()
{
function
poll_perm
ission
()
{
$perms
=
node_list_permissions
(
'poll'
);
$perms
+=
array
(
'vote on polls'
=>
array
(
...
...
modules/search/search.module
View file @
e4a4b7cc
...
...
@@ -141,9 +141,9 @@ function search_theme() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
search_perm
()
{
function
search_perm
ission
()
{
return
array
(
'administer search'
=>
array
(
'title'
=>
t
(
'Administer search'
),
...
...
modules/simpletest/drupal_web_test_case.php
View file @
e4a4b7cc
...
...
@@ -876,7 +876,7 @@ protected function checkPermissions(array $permissions, $reset = FALSE) {
static
$available
;
if
(
!
isset
(
$available
)
||
$reset
)
{
$available
=
array_keys
(
module_invoke_all
(
'perm'
));
$available
=
array_keys
(
module_invoke_all
(
'perm
ission
'
));
}
$valid
=
TRUE
;
...
...
modules/simpletest/simpletest.module
View file @
e4a4b7cc
...
...
@@ -44,9 +44,9 @@ function simpletest_menu() {
}
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
simpletest_perm
()
{
function
simpletest_perm
ission
()
{
return
array
(
'administer unit tests'
=>
array
(
'title'
=>
t
(
'Administer unit tests'
),
...
...
modules/simpletest/tests/field_test.module
View file @
e4a4b7cc
...
...
@@ -5,9 +5,9 @@
define
(
'FIELD_TEST_BUNDLE'
,
'test_bundle'
);
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
field_test_perm
()
{
function
field_test_perm
ission
()
{
$perms
=
array
(
'access field_test content'
=>
array
(
'title'
=>
t
(
'Access field_test content'
),
...
...
modules/simpletest/tests/module_test.module
View file @
e4a4b7cc
...
...
@@ -2,9 +2,9 @@
// $Id$
/**
* Implement hook_perm().
* Implement hook_perm
ission
().
*/
function
module_test_perm
()
{
function
module_test_perm
ission
()
{
return
array
(
'module_test perm'
=>
t
(
'example perm for module_test module'
),
);
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment