You are here

function feedapi_get_types in FeedAPI 5

Same name and namespace in other branches
  1. 6 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_feeds_form in ./feedapi.module
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 1520
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;
}