function content_get_types
Search API
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.
5 calls to content_get_types()
- 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
- content_edit_content_form_submit in modules/
content/ content.module - Submit handler for the edit content form.
- content_perm in modules/
content/ content.module - Implementation of hook_perm
- content_view_content in modules/
content/ content.module - Display the content specified in the GET's cid.
File
- modules/
content/ content.module, line 603
Code
function content_get_types() {
$rtn = array();
$modules = modules_implement_hook("content_register_content_type");
foreach ($modules as $module) {
$types = call_user_func($module . '_content_register_content_type');
$rtn += $types;
}
return $rtn;
}