You are here

function og_node_create_links_content_type_edit_form in Organic groups 7

Same name and namespace in other branches
  1. 7.2 plugins/content_types/node_create_links/node_create_links.inc \og_node_create_links_content_type_edit_form()

Edit form.

File

plugins/content_types/node_create_links/node_create_links.inc, line 42

Code

function og_node_create_links_content_type_edit_form($form, &$form_state) {
  $conf = $form_state['conf'];
  foreach (node_type_get_types() as $type) {
    if (og_is_group_content_type('node', $type->type)) {
      $options[$type->type] = check_plain($type->name);
    }
  }
  $form['types'] = array(
    '#title' => t('Restrict to content types'),
    '#type' => 'checkboxes',
    '#options' => $options,
    '#default_value' => $conf['types'],
    '#description' => t('If left empty, all possible content types are shown.'),
  );
  return $form;
}