function ctools_comment_links_content_type_edit_form

Returns an edit form for the custom type.

File

plugins/content_types/comment/comment_links.inc, line 53

Code

function ctools_comment_links_content_type_edit_form($form, &$form_state) {
    $conf = $form_state['conf'];
    $entity = entity_get_info('comment');
    $build_mode_options = array();
    foreach ($entity['view modes'] as $mode => $option) {
        $build_mode_options[$mode] = $option['label'];
    }
    $form['build_mode'] = array(
        '#title' => t('Build mode'),
        '#type' => 'select',
        '#description' => t('Select a build mode for this comment.'),
        '#options' => $build_mode_options,
        '#default_value' => $conf['build_mode'],
    );
    return $form;
}