function node_convert_permission in Node Convert 7
Implements hook_permission().
File
- ./
node_convert.module, line 47
Code
function node_convert_permission() {
$types = node_type_get_types();
$permissions = array(
'administer conversion' => array(
'title' => t('administer conversion'),
'description' => t('Grants full permissions for converting between types.'),
),
);
foreach ($types as $type => $parameters) {
$permissions['convert from ' . $type] = array(
'title' => t('convert from ' . $type),
'description' => t('Grants pemission for conversion from @type node types.', array(
'@type' => $type,
)),
);
$permissions['convert to ' . $type] = array(
'title' => t('convert to ' . $type),
'description' => t('Grants pemission for conversion to @type node types.', array(
'@type' => $type,
)),
);
}
return $permissions;
}