0
votes

In drupal user registration, Users should be able to choose the types which they want to subscribe to. So, how can I list Content Types (node types) in Custom Profile Registration Type?

http://i.stack.imgur.com/hvWd2.png

1

1 Answers

0
votes

You can retrieve all Content Types with node_type_get_names() function. So, in hook_form_alter add:

$form['ct'] = array(
  '#type' => 'checkboxes',
  '#options' => node_type_get_names(),
  '#title' => t('What standardized tests did you take?'),
);