function content_get_types

6.x content.module content_get_types()
4.x content.module content_get_types()
5.x content.module content_get_types()

Return an array with all the possible content types known to FlightPath

Modules may declare their content types using the hook_content_register_content_type hook. You should clear the cache after creating a new content type.

12 calls to content_get_types()
calendar_confirm_cancel_appointment_form in modules/calendar/calendar.module
Confirm we actually want to cancel this appointment
content_content_load in modules/content/content.module
Implementation of content's hook_content_load
content_content_save in modules/content/content.module
Implements hook_content_save. We will save the content object to the database.
content_display_content_admin_list in modules/content/content.module
Display a list of content for the administrator
content_edit_content_form in modules/content/content.module
This form lets the user edit some piece of content

... See full list

File

modules/content/content.module, line 2554

Code

function content_get_types() {
  $rtn = array();

  // Save effort by saving to a globals cache.
  if (isset($GLOBALS ['content_types_cache'])) {
    return $GLOBALS ['content_types_cache'];
  }

  $modules = modules_implement_hook("content_register_content_type");
  foreach ($modules as $module) {
    $types = call_user_func($module . '_content_register_content_type');
    $rtn += $types;
  }

  $GLOBALS ['content_types_cache'] = $rtn;

  return $rtn;

}