You are here

function node_convert_perm in Node Convert 6

Implementation of hook_perm().

File

./node_convert.module, line 49
The node_convert module converts nodes from one type to another.

Code

function node_convert_perm() {
  $types = node_get_types();
  $permissions = array(
    'administer conversion',
  );
  foreach ($types as $type => $parameters) {
    $permissions[] = 'convert from ' . $type;
    $permissions[] = 'convert to ' . $type;
  }
  return $permissions;
}