You are here

public function ContentProfilePageViewProfile::getAdminForm in Content Profile 6

File

./content_profile.pageroute.inc, line 110

Class

ContentProfilePageViewProfile
ContentProfilePageViewProfile displays a content profile.

Code

public function getAdminForm($page, &$form) {
  $form['options']['content-type'] = array(
    '#type' => 'select',
    '#title' => t('Profile content type'),
    '#options' => content_profile_get_types('names'),
    '#required' => TRUE,
    '#default_value' => $page->options['content-type'],
    '#weight' => 2,
    '#description' => t('You can only use content types marked as \'content profile\''),
  );
}