Compatibility with Storm module
This commit is contained in:
parent
a75b93d701
commit
e54437b797
1 changed files with 11 additions and 2 deletions
|
@ -11,7 +11,16 @@ function view_revisions_by_content_type_perm() {
|
|||
$perms = array();
|
||||
|
||||
foreach (node_get_types() as $type) {
|
||||
if ($type->module == 'node' || $type->module == 'features') {
|
||||
if ($type->module == 'node' || $type->module == 'features' ||
|
||||
|
||||
$type->module == 'stormproject' ||
|
||||
$type->module == 'stormtask' ||
|
||||
$type->module == 'stormticket' ||
|
||||
$type->module == 'stormevent' ||
|
||||
$type->module == 'stormdok' ||
|
||||
$type->module == 'stormnote'
|
||||
|
||||
) {
|
||||
$name = check_plain($type->type);
|
||||
$perms[] = 'view revisions of '. $name .' content';
|
||||
}
|
||||
|
|
Reference in a new issue