function _footnotes_get_content_types in Footnotes 7.2
Same name and namespace in other branches
- 7.3 footnotes_field/includes/footnotes_field.admin.inc \_footnotes_get_content_types()
Fetches option mist with all content types.
1 call to _footnotes_get_content_types()
- _footnotes_field_admin_form in footnotes_field/
includes/ footnotes_field.admin.inc - Renders admin form.
File
- footnotes_field/
includes/ footnotes_field.admin.inc, line 85 - Footnotes field admin file.
Code
function _footnotes_get_content_types() {
$options = array();
$content_types = node_type_get_types();
foreach ($content_types as $key => $content_type) {
$options[$key] = $content_type->name;
}
return $options;
}