You are here

function _promote_disable_node_types in Promote Disable 7

Simple function to return a FAPI select options array.

See also

promote_disable_form()

1 call to _promote_disable_node_types()
promote_disable_form in ./promote_disable.module
Page callback: Promote Disable settings.

File

./promote_disable.module, line 75
Primarily Drupal hooks and helper functions. This is the main module file for Promote Disable.

Code

function _promote_disable_node_types() {
  $options = array();
  $node_types = node_type_get_types();
  foreach ($node_types as $key => $value) {
    $options[$key] = $value->name;
  }
  asort($options);
  return $options;
}