function content_profile_views_handler_relationship::options_form in Content Profile 6
Adds a form element for choosing the right content type.
File
- views/
content_profile_views_handler_relationship.inc, line 18
Class
- content_profile_views_handler_relationship
- Specialized relationship handler to adding content profiles.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['type'] = array(
'#type' => 'radios',
'#title' => t('Content type'),
'#default_value' => $this->options['type'],
'#options' => content_profile_get_types('names'),
'#required' => TRUE,
);
}