You are here

function feedapi_get_types in FeedAPI 6

Same name and namespace in other branches
  1. 5 feedapi.module \feedapi_get_types()

Return a list of FeedAPI-enabled content-types list, ready-to-use for #options at FormsAPI

3 calls to feedapi_get_types()
feedapi_block in ./feedapi.module
Implementation of hook_block().
feedapi_import_opml in ./feedapi.opml.inc
OPML Feed import form, also allows setting defaults to be applied to each feed
feedapi_simplified_form_submit in ./feedapi.module
Create the node object and save

File

./feedapi.module, line 1586
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function feedapi_get_types() {
  $names = node_get_types('names');
  foreach ($names as $type => $name) {
    if (!feedapi_enabled_type($type)) {
      unset($names[$type]);
    }
  }
  return $names;
}