function reviews_get_node_types in Reviews 7
Helper function to return an array of available content types.
1 call to reviews_get_node_types()
- reviews_settings in includes/
reviews.admin.inc - Form builder for the main settings page.
File
- includes/
reviews.api.inc, line 116 - This file contains API functions for the reviews system.
Code
function reviews_get_node_types() {
$types = node_type_get_types();
$tmp = array();
foreach ($types as $key => $type) {
$tmp[$key] = $type->name;
}
return $tmp;
}