Closed (fixed)
Project:
Follow
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2009 at 19:50 UTC
Updated:
16 Nov 2009 at 20:30 UTC
Jump to comment: Most recent file
Time to start updating modules for D7. Looks like the DRUPAL-6--1 code is the most recent, so I'll roll a patch against that. In order to apply thte patch to HEAD, please sync HEAD with the 6 branch.
PS - Please create a DEV release pointing to HEAD and label as Drupal core 7.x compatible so there is a 7.x version to choose from for the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | follow-D7-619276-17.patch | 8.33 KB | pwolanin |
| #16 | follow-D7-619276-16.patch | 7.82 KB | pwolanin |
| #14 | follow-D7-619276-10.patch | 5.72 KB | pwolanin |
| #10 | follow-D7-619276-9.patch | 7.76 KB | pwolanin |
| #8 | follow-D7-619276-8.patch | 7.53 KB | pwolanin |
Comments
Comment #1
pwolanin commentedfirst start on a patch
Comment #2
pwolanin commentedcommitted patch #1 - will continue with further updates
Comment #3
pwolanin commentedComment #4
pwolanin commentedmore updates, including hook_block_X
Comment #5
pwolanin commentedcommitted 2nd patch
Comment #6
pwolanin commentedSchema descriptions are no longer translated
http://drupal.org/node/224333#schema_translation
Comment #7
pwolanin commentedAPI cleanup - user drupal_alter on default networks list - add site RSS as a possible network. Simplify caching.
start on regex cleanup. Do some sites provide a non http or https link?
Comment #8
pwolanin commentedworking on validation of URL more.
Comment #9
q0rban commentedPeter, thanks for all your work on this.
Can we keep the regex cleanup to this issue, so that it's in 6 & 7 branches? #538172: Refactor regex for better validation and to allow for special chars in urls
Also:
If I'm not mistaken, there is a hook for adding new networks that I believe is called hook_follow_networks().
Comment #10
pwolanin commentedno longer need to install schema in hook_install: http://drupal.org/update/modules/6/7#install-schema
add a default link to the site's RSS feed.
Comment #11
pwolanin commented@q0rban - the way it's written now, hook_follow_networks() only lets you add, not remove or alter. Using drupal_alter as in this patch lets other contrib module add change or remove any of the network based on the default list provided by follow.module - I think this is a more useful API to expose.
Comment #12
q0rban commentedAlso, looking at your follow_build_url_regex function made me think it would make sense to move away from the simple array structure of hook_follow_networks to something more like this:
That would allow you to pass the array to your regex validator and get the domain for each that way, without having to hard code all that garbage into the function itself, and also greater flexibility in the future for custom title callbacks and such.
Not sure if domain should be kept 'domain' or maybe it should be 'url', or 'base_url' or 'base'.
Thoughts?
Comment #13
q0rban commentedYes, but your comment said 'there is no way to create new networks', I was just clarifying that there is a way to create new networks. There is already an issue about adding the drupal_alter as well: #555636: Allow altering of networks
Thanks! :)
Comment #14
pwolanin commentedmoved url validation to the other issue.
Comment #15
pwolanin commented@quorban - generally a module does not implement it's own hooks - so letting modules just add or alter on the alter hook makes more sense to me.
Comment #16
pwolanin commentedper discussion in IRC - just leaving as drupal_alter.
Got tabledrag sort of working.
Comment #17
pwolanin commentedcommitted this patch
incl this CS class change: http://drupal.org/update/theme/6/7#clearfix