I am not sure if this is a good idea or not.

Defining a hook_feedapi_info() hook (similar to hook_node_info()) to be implemented by parser and processor add on modules might be useful.

Comments

alex_b’s picture

What info would you like to return on this hook? Could we use the drupal hook_help() for this purpose?

mustafau’s picture

hook_help() is meant to provide documentation strings. A hook_feedapi_info() hook might provide the name and type (parser, processor or both) of an add on module to FeedAPI.

mustafau’s picture


function parser_simplepie_feedapi_info() {
  return array(
    'name' => t('Parser SimplePie'),
  );
} 

Seems better to me than using hook_help().

mustafau’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

I can provide a patch if you are willing to commit.

If you are holding the issue because you think hook_feedapi_info() is unnecessary please tag it as "won't fix".

mustafau’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)