feedapi_get_types

Versions
5 – 6
feedapi_get_types()

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

▾ 3 functions call feedapi_get_types()

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

Code

contributions/feedapi/feedapi.module, line 1520

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.