Hello !

In case of Multiple content type in the same module,

I wrote my hook node info like this

function example_node_info() {
 return array(
  'ex1' => array(
	'name' => t('Demande de ex1'),
	'module' => 'ex1',
	'description' => t('Une demande de ex1.'),
	'has_title' => FALSE,
	'has_body' => FALSE,
  ),
  'ex2' => array(
	'name' => t('Demande ex2'),
	'module' => 'ex2',
	'description' => t('Une demande de ex2.'),
	'has_title' => FALSE,
	'has_body' => FALSE,
  ),
 );
}

Is it possible to define two perm's hooks like this :

/**
* Implements hook_perm()
*/
function ex1_perm() {
 return array(
  'create ex1',
  'edit ex1',
  'delete ex1',
 );
}
function ex2_perm() {
 return array(
  'create ex2',
  'edit ex2',
  'delete ex2',
 );
}

Because i can't see the permissions in the permissions' page...

Thanks for your help...

Comments

kars-t’s picture

Assigned: prosk » Unassigned
Status: Active » Fixed

Hi

I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.

Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.

Status: Fixed » Closed (fixed)
Issue tags: -Content type, -hook_perm, -multiple content types

Automatically closed -- issue fixed for 2 weeks with no activity.