function comment_alter_permission in Comment Alter 7
Implements hook_permission().
File
- ./
comment_alter.module, line 645 - Provides UI to alter nodes' parameters from comment forms.
Code
function comment_alter_permission() {
$return = array();
foreach (node_type_get_types() as $type) {
$return['view comment alterations in ' . $type->type] = array(
// TODO: I18n support.
'title' => t('View comment alterations of %type nodes', array(
'%type' => $type->name,
)),
);
}
return $return;
}