You are here

function panels_profile_fields_panels_content_types in Panels 6.2

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

Callback function to supply a list of content types.

File

content_types/profile_fields.inc, line 7

Code

function panels_profile_fields_panels_content_types() {
  $items = array();
  if (module_exists('profile') && !is_null(profile_categories())) {
    $items['profile_fields'] = array(
      'title' => t('Profile Fields'),
      'content_types' => 'panels_profile_fields_content_type',
      // only provides a single content type
      'single' => TRUE,
      'render callback' => 'panels_profile_fields_content',
      'add callback' => 'panels_profile_fields_configure',
      'edit callback' => 'panels_profile_fields_configure',
      'title callback' => 'panels_profile_fields_configure_title',
    );
  }
  return $items;
}