Index: feedapi.drush.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/Attic/feedapi.drush.inc,v retrieving revision 1.1.2.1 diff -u -p -r1.1.2.1 feedapi.drush.inc --- feedapi.drush.inc 18 Jun 2009 13:58:11 -0000 1.1.2.1 +++ feedapi.drush.inc 23 Jun 2009 13:15:17 -0000 @@ -2,6 +2,13 @@ // $Id: feedapi.drush.inc,v 1.1.2.1 2009/06/18 13:58:11 aronnovak Exp $ /** + * @file + * Drush commands for FeedAPI to make it possible to control FeedAPI via command line + * http://drupal.org/project/drush + * Example use for feed refreshing: http://aron.novaak.net/?q=node/350 (shell script + Hungarian description) + */ + +/** * Implementation of hook_drush_help(). */ function feedapi_drush_help($section) { Index: feedapi.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/feedapi.install,v retrieving revision 1.5.2.21.2.17 diff -u -p -r1.5.2.21.2.17 feedapi.install --- feedapi.install 18 Jun 2009 14:49:59 -0000 1.5.2.21.2.17 +++ feedapi.install 23 Jun 2009 13:15:17 -0000 @@ -2,6 +2,11 @@ // $Id: feedapi.install,v 1.5.2.21.2.17 2009/06/18 14:49:59 aronnovak Exp $ /** + * @file + * Creates tables for FeedAPI. + */ + +/** * Implementation of hook_schema(). */ function feedapi_schema() { @@ -97,7 +102,14 @@ function feedapi_install() { // This value warrants that og, taxonomy and similar modules does their job before feedapi. This is important // because of for example feedapi_inherit or whatever processor which needs a 3rd-party processed data. db_query("UPDATE {system} SET weight = 5 WHERE name = 'feedapi'"); +} +/** + * Implementation of hook_uninstall(). + */ +function feedapi_uninstall() { + drupal_uninstall_schema('feedapi'); + // Delete variables site-wide variable_del('feedapi_allowed_html_tags'); variable_del('feedapi_allow_html_all'); @@ -110,13 +122,6 @@ function feedapi_install() { } } -/** - * Implementation of hook_uninstall(). - */ -function feedapi_uninstall() { - drupal_uninstall_schema('feedapi'); -} - function feedapi_update_6101() { $ret = array(); db_add_field($ret, 'feedapi', 'skip', array('type' => 'int', 'size' => 'tiny', 'default' => 0)); Index: feedapi.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/feedapi.module,v retrieving revision 1.23.2.119.2.62 diff -u -p -r1.23.2.119.2.62 feedapi.module --- feedapi.module 19 Jun 2009 18:16:56 -0000 1.23.2.119.2.62 +++ feedapi.module 23 Jun 2009 13:15:18 -0000 @@ -1238,9 +1238,9 @@ function _feedapi_invoke_refresh(&$feed, } // Closing step: Call after refresh and update feed statistics - foreach (module_implements('feedapi_after_refresh') as $module) { - $func = $module .'_feedapi_after_refresh'; - $func($feed); + foreach (module_implements('feedapi_after_refresh') as $module) { + $func = $module .'_feedapi_after_refresh'; + $func($feed); } if ($new > 0) { _feedapi_store_stat($nid, 'update_times', time(), $timestamp); Index: feedapi_node/feedapi_node.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/feedapi_node/Attic/feedapi_node.install,v retrieving revision 1.1.2.13.2.9 diff -u -p -r1.1.2.13.2.9 feedapi_node.install --- feedapi_node/feedapi_node.install 3 Feb 2009 11:04:29 -0000 1.1.2.13.2.9 +++ feedapi_node/feedapi_node.install 23 Jun 2009 13:15:18 -0000 @@ -2,6 +2,11 @@ // $Id: feedapi_node.install,v 1.1.2.13.2.9 2009/02/03 11:04:29 aronnovak Exp $ /** + * @file + * Creates tables for FeedAPI Node and creates content-type for FeedAPI if not exists. + */ + +/** * Implementation of hook_schema(). */ function feedapi_node_schema() { @@ -92,6 +97,9 @@ function feedapi_node_uninstall() { menu_rebuild(); } +/** + * Creates feedapi content-type with sane default values. + */ function _feedapi_node_install_type_create() { // Create an additional node type. $feed_node_type = array( Index: parser_common_syndication/parser_common_syndication.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/parser_common_syndication/Attic/parser_common_syndication.install,v retrieving revision 1.1.2.4.2.7 diff -u -p -r1.1.2.4.2.7 parser_common_syndication.install --- parser_common_syndication/parser_common_syndication.install 21 Apr 2009 13:30:03 -0000 1.1.2.4.2.7 +++ parser_common_syndication/parser_common_syndication.install 23 Jun 2009 13:15:18 -0000 @@ -2,6 +2,11 @@ // $Id: parser_common_syndication.install,v 1.1.2.4.2.7 2009/04/21 13:30:03 aronnovak Exp $ /** + * @file + * Adds it to the content-type configuration + */ + +/** * Implementation of hook_schema(). */ function parser_common_syndication_schema() { @@ -68,11 +73,11 @@ function parser_common_syndication_unins * Instead of textual URL, store MD5 in the parser_common_syndication table */ function parser_common_syndication_update_6101() { + $ret = array(); $result = db_query("SELECT url FROM {parser_common_syndication}"); while ($url = db_fetch_array($result)) { - db_query("UPDATE {parser_common_syndication} SET url = '%s' WHERE url = '%s'", md5($url['url']), $url['url']); + $ret[] = update_sql("UPDATE {parser_common_syndication} SET url = '%s' WHERE url = '%s'", md5($url['url']), $url['url']); } - $ret = array(); db_change_field($ret, 'parser_common_syndication', 'url', 'url', array( 'description' => t('The MD5 hash of feed URL'), 'type' => 'varchar', Index: parser_common_syndication/parser_common_syndication.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/parser_common_syndication/parser_common_syndication.module,v retrieving revision 1.6.2.23.2.42 diff -u -p -r1.6.2.23.2.42 parser_common_syndication.module --- parser_common_syndication/parser_common_syndication.module 5 Jun 2009 13:49:43 -0000 1.6.2.23.2.42 +++ parser_common_syndication/parser_common_syndication.module 23 Jun 2009 13:15:18 -0000 @@ -224,7 +224,7 @@ function _parser_common_syndication_feed if (isset($result->headers[$header]) && $header == 'Set-Cookie') { // RFC 2109: the Set-Cookie response header comprises the token Set- // Cookie:, followed by a comma-separated list of one or more cookies. - $result->headers[$header] .= ',' . trim($value); + $result->headers[$header] .= ','. trim($value); } else { $result->headers[$header] = trim($value); @@ -360,11 +360,11 @@ function _parser_common_syndication_down foreach ($links as $link) { $mime = array(); // Get the type attribute and check if the mime type is allowed. - preg_match_all('/type\s*=\s*("|'. "'" .')([A-Za-z\/+]*)("|'. "'" .')/si', $link, $mime); + preg_match_all('/type\s*=\s*("|'."'".')([A-Za-z\/+]*)("|'."'".')/si', $link, $mime); if (in_array(array_pop($mime[2]), $allowed_mime)) { $href = array(); // Get the href attribute. - preg_match_all('/href\s*=\s*("|'. "'" .')([=#\?_:.0-9A-Za-z\/+]*)("|'. "'" .')/si', $link, $href); + preg_match_all('/href\s*=\s*("|'."'".')([=#\?_:.0-9A-Za-z\/+]*)("|'."'".')/si', $link, $href); $rss_link = array_pop($href[2]); if (is_string($rss_link) && strlen($rss_link) > 0 && $rss_link != $url) { // Handle base url related stuff. @@ -372,7 +372,7 @@ function _parser_common_syndication_down if (!isset($parsed_url['host'])) { // It's relative so make it absolute. $base_tag = array(); - preg_match_all('/ 0) { // Get from the HTML base tag. Index: parser_simplepie/parser_simplepie.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/parser_simplepie/Attic/parser_simplepie.install,v retrieving revision 1.1.2.6.2.7 diff -u -p -r1.1.2.6.2.7 parser_simplepie.install --- parser_simplepie/parser_simplepie.install 3 Mar 2009 07:01:15 -0000 1.1.2.6.2.7 +++ parser_simplepie/parser_simplepie.install 23 Jun 2009 13:15:19 -0000 @@ -2,6 +2,11 @@ // $Id: parser_simplepie.install,v 1.1.2.6.2.7 2009/03/03 07:01:15 aronnovak Exp $ /** + * @file + * Checks for external SimplePie library and adds it to the content-type configuration + */ + +/** * Implementation of hook_requirements(). */ function parser_simplepie_requirements($phase) {