function _node_registration_node_types in Node registration 7
Node types for which registration is enabled.
4 calls to _node_registration_node_types()
- node_registration_permission in ./
node_registration.module - Implements hook_permission().
- nr_webform_fields_webform_fields_node_methods_info in submodules/
nr_webform_fields/ nr_webform_fields.module - Implements hook_webform_fields_node_methods_info().
- _node_registration_bundles in includes/
node_registration.api.inc - Returns all node registration bundles in the node_registration type.
- _node_registration_event_nodes in includes/
node_registration.api.inc - Returns all event node objects (for certrain node types).
File
- includes/
node_registration.api.inc, line 694 - Registration API functions.
Code
function _node_registration_node_types() {
$types = array();
foreach (node_type_get_names() as $type => $name) {
if (_node_registration_node_type_enabled($type)) {
$types[$type] = $name;
}
}
return $types;
}