You are here

function panels_admin_edit_term_list in Panels 6.2

Same name and namespace in other branches
  1. 5.2 content_types/term_list.inc \panels_admin_edit_term_list()

Returns an edit form for the custom type.

1 string reference to 'panels_admin_edit_term_list'
panels_term_list_panels_content_types in content_types/term_list.inc
Callback function to supply a list of content types.

File

content_types/term_list.inc, line 99

Code

function panels_admin_edit_term_list($id, $parents, $conf = array()) {

  // Apply defaults
  if (empty($conf)) {
    $conf = array(
      'title' => '',
      'type' => 'child',
      'list_type' => 'ul',
    );
  }
  $form['type'] = array(
    '#type' => 'radios',
    '#title' => t('Which terms'),
    '#options' => panels_admin_term_list_options(),
    '#default_value' => $conf['type'],
    '#prefix' => '<div class="clear-block no-float">',
    '#suffix' => '</div>',
  );
  $form['list_type'] = array(
    '#type' => 'select',
    '#title' => t('List type'),
    '#options' => array(
      'ul' => t('Unordered'),
      'ol' => t('Ordered'),
    ),
    '#default_value' => $conf['list_type'],
  );
  return $form;
}