You are here

function _ctools_custom_content_type_content_type in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 plugins/content_types/custom/custom.inc \_ctools_custom_content_type_content_type()

Return an info array for a specific custom content type.

2 calls to _ctools_custom_content_type_content_type()
ctools_custom_content_type_content_type in plugins/content_types/custom/custom.inc
Return the custom content types with the specified $subtype_id.
ctools_custom_content_type_content_types in plugins/content_types/custom/custom.inc
Return all custom content types available.

File

plugins/content_types/custom/custom.inc, line 89
Custom content type.

Code

function _ctools_custom_content_type_content_type($content) {
  $info = array(
    'name' => $content->name,
    'title' => check_plain($content->admin_title),
    'description' => check_plain($content->admin_description),
    'category' => $content->category ? check_plain($content->category) : t('Miscellaneous'),
    'all contexts' => TRUE,
    'icon' => 'icon_block_custom.png',
    // Store this here to make it easy to access.
    'content' => $content,
  );
  return $info;
}