View source
<?php
function faq_content_user_default_permissions() {
$permissions = array();
$permissions['administer faq'] = array(
'name' => 'administer faq',
'roles' => array(
'expert' => 'expert',
),
'module' => 'faq',
);
$permissions['administer faq order'] = array(
'name' => 'administer faq order',
'roles' => array(
'expert' => 'expert',
),
'module' => 'faq',
);
$permissions['create faq content'] = array(
'name' => 'create faq content',
'roles' => array(
'anonymous user' => 'anonymous user',
'expert' => 'expert',
),
'module' => 'node',
);
$permissions['delete any faq content'] = array(
'name' => 'delete any faq content',
'roles' => array(
'expert' => 'expert',
),
'module' => 'node',
);
$permissions['delete own faq content'] = array(
'name' => 'delete own faq content',
'roles' => array(
'expert' => 'expert',
),
'module' => 'node',
);
$permissions['edit any faq content'] = array(
'name' => 'edit any faq content',
'roles' => array(
'expert' => 'expert',
),
'module' => 'node',
);
$permissions['edit own faq content'] = array(
'name' => 'edit own faq content',
'roles' => array(
'expert' => 'expert',
),
'module' => 'node',
);
$permissions['view faq page'] = array(
'name' => 'view faq page',
'roles' => array(
'anonymous user' => 'anonymous user',
'expert' => 'expert',
),
'module' => 'faq',
);
return $permissions;
}