You are here

public function ContentProfilePageEditProfile::getAdminForm in Content Profile 6

File

./content_profile.pageroute.inc, line 49

Class

ContentProfilePageEditProfile
ContentProfilePageEditProfile displays a form that allows users to edit content profiles.

Code

public function getAdminForm($page, &$form) {
  $form['options']['content-type'] = array(
    '#type' => 'select',
    '#title' => t('Profile content type'),
    '#options' => content_profile_get_types('names'),
    '#default_value' => $page->options['content-type'],
    '#weight' => 2,
    '#description' => t('Select a content profile type.'),
  );
  PageroutePage::nodeUi($page, $form, TRUE);
}