function antispam_permission in AntiSpam 7
Implements hook_permission().
File
- ./
antispam.module, line 117 - Primary hook implementations for the Antispam module.
Code
function antispam_permission() {
$permissions = array(
'administer antispam settings' => array(
'title' => t('Administer AntiSpam module'),
'description' => '',
),
);
$names = node_type_get_names();
foreach ($names as $type => $name) {
$index = 'moderate spam in nodes of type ' . $name;
$permissions[$index] = array(
'title' => t('Moderate spam in nodes of type !type', array(
'!type' => $name,
)),
'description' => '',
);
}
$permissions['moderate spam in comments'] = array(
'title' => t('Moderate spam in comments'),
'description' => '',
);
$permissions['post with no antispam checking'] = array(
'title' => t('Post with no spam checking'),
'description' => 'Allow to post nodes/comments without being checked by AntiSpam module. ',
);
return $permissions;
}