function _prevnext_types_as_options in Prevnext 7
Helper: Retrieve all node types and create an option list with them.
1 call to _prevnext_types_as_options()
- prevnext_settings in include/
prevnext.admin.inc - Previous/Next Settings Form Callback
File
- include/
prevnext.admin.inc, line 37 - prevnext.admin.inc
Code
function _prevnext_types_as_options() {
$node_types = node_type_get_types();
$options = array();
foreach ($node_types as $type => $info) {
$options[$type] = $info->name;
}
asort($options);
return $options;
}