Define a hook_feedapi_info() hook

mustafau - December 18, 2007 - 20:36
Project:FeedAPI
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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.

#1

alex_b - December 18, 2007 - 21:35

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

#2

mustafau - December 25, 2007 - 01:04

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.

#3

mustafau - March 11, 2008 - 01:39

<?php


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

Seems better to me than using hook_help().

#4

mustafau - May 10, 2008 - 14:04
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:active» active (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".

#5

mustafau - August 2, 2008 - 00:59
Status:active (needs more info)» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.