/[drupal]/contributions/modules/links/links.inc
ViewVC logotype

Log of /contributions/modules/links/links.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.20.2.10 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 16 19:22:49 2009 UTC (9 months, 1 week ago) by syscrusher
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-13
Changes since 1.20.2.9: +18 -2 lines
Diff to previous 1.20.2.9 , to branch point 1.20 , to next main 1.28
More robust discovery of embedded links with image tags, per issue #156592.

Revision 1.28.2.5.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 16 19:17:29 2009 UTC (9 months, 1 week ago) by syscrusher
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--1-2
Changes since 1.28.2.5: +18 -2 lines
Diff to previous 1.28.2.5
Patch for issue #156592 and to set longer field lengths for link URL and title.

Revision 1.20.2.9 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 21 04:48:17 2009 UTC (10 months, 1 week ago) by syscrusher
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-12, DRUPAL-5--1-12-BETA1
Changes since 1.20.2.8: +50 -3 lines
Diff to previous 1.20.2.8 , to branch point 1.20
	New feature: Administrative option allows rel="nofollow"
	attribute on external links, per issue #144620.

	New feature: Administrative option allows direct links
	(skipping redirect page, at the cost of no click
	counting). Separately controllable for internal and
	external links.

	New feature: Optional logging of all external redirects,
	primarily for diagnostic purposes but also useful if the
	site owner wants really detailed click tracking.

	Added #maxlength attribute for URL textfields to allow
	longer values, per issue #232575.

Revision 1.28.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 21 04:16:33 2009 UTC (10 months, 1 week ago) by syscrusher
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-0-BETA14, DRUPAL-6--1-0-BETA15, DRUPAL-6--1-1
Branch point for: DRUPAL-6--2
Changes since 1.28.2.4: +50 -3 lines
Diff to previous 1.28.2.4 , to branch point 1.28
	New feature: Administrative option allows rel="nofollow"
	attribute on external links, per issue #144620.

	New feature: Administrative option allows direct links
	(skipping redirect page, at the cost of no click
	counting). Separately controllable for internal and
	external links.

	New feature: Optional logging of all external redirects,
	primarily for diagnostic purposes but also useful if the
	site owner wants really detailed click tracking.

	Added #maxlength attribute for URL textfields to allow
	longer values, per issue #232575.

Revision 1.28.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 15 15:32:48 2009 UTC (10 months, 1 week ago) by syscrusher
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-0-BETA13
Changes since 1.28.2.3: +9 -7 lines
Diff to previous 1.28.2.3 , to branch point 1.28
        Oops. Should NOT have used db_next_id() in Drupal 6.
        Corrected this to use drupal_write_record(). I will
        be looking at a more comprehensive update to the
        links_put_links() function but for now just wanted
        to get this critical bug fixed.

	This fixes issue #359071.

Revision 1.28.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 13 03:30:57 2009 UTC (10 months, 2 weeks ago) by syscrusher
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-0-BETA12
Changes since 1.28.2.2: +2 -2 lines
Diff to previous 1.28.2.2 , to branch point 1.28
	Removed obsolete call to _system_update_utf8() in
	links.install to fix issue #356994.

	Changed incorrect db_last_insert_id() call to instead
	use db_next_id().

	Applied patch from issue #357437 to fix failure of
	outbound link.

	Applied patch to fix filter tips bug reported in #357335.

Revision 1.20.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 13 02:59:37 2009 UTC (10 months, 2 weeks ago) by syscrusher
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-10, DRUPAL-5--1-11
Changes since 1.20.2.7: +2 -2 lines
Diff to previous 1.20.2.7 , to branch point 1.20
Removed call to db_last_insert_id() in links.inc. That call
        should have been (and now is) db_next_id().

Revision 1.28.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 31 01:37:00 2008 UTC (10 months, 4 weeks ago) by syscrusher
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-0-BETA10, DRUPAL-6--1-0-BETA11, DRUPAL-6--1-0-BETA8, DRUPAL-6--1-0-BETA9
Changes since 1.28.2.1: +6 -6 lines
Diff to previous 1.28.2.1 , to branch point 1.28
Fixed missing links tab in links_related, and updated calls to watchdog()
in links.inc.

Revision 1.20.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 31 00:46:04 2008 UTC (10 months, 4 weeks ago) by syscrusher
Branch: DRUPAL-5
Changes since 1.20.2.6: +299 -22 lines
Diff to previous 1.20.2.6 , to branch point 1.20
Development snapshot of the Drupal 5 version. This snapshot has a backport
of the new links.inc from the Drupal 6 version. The change to links_weblink
is just a small HTML correction.

Revision 1.28.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 30 23:11:18 2008 UTC (10 months, 4 weeks ago) by syscrusher
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-0-BETA7
Changes since 1.28: +1 -2 lines
Diff to previous 1.28
	TRANSLATORS: Updated template to unify in po/links.pot.

	Fixed issue #341487 in links_weblink.

	Fixed issue #132209 in links_weblink, although the patch
	attached to that issue was not actually the fix for the
	problem in the D6 version of the module.

	Fixed issue #147226 (translation of "Visit") in links.inc.

	Implemented the direct-weblink feature requested in #147893.

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Dec 28 00:56:51 2008 UTC (11 months ago) by syscrusher
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA3, DRUPAL-6--1-0-BETA5, DRUPAL-6--1-0-BETA6, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.27: +108 -6 lines
Diff to previous 1.27
        Fully functional links_admin.module. Some new
        APIs in links.inc. Removed an extraneous diagnostic
        message from links_weblink.module.

        This is the initial beta release of links_admin.

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 26 03:53:36 2008 UTC (11 months ago) by syscrusher
Branch: MAIN
Changes since 1.26: +17 -3 lines
Diff to previous 1.26
Further work on links_admin.module, with some supporting changes to other
modules as needed.

Developers please note the change to one of the new hook functions in the
API, which has reversed the order of values in its return array. The
API.html file has details. Another change was made to the links API, but
the second change is backward-compatible.

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 23 03:07:29 2008 UTC (11 months ago) by syscrusher
Branch: MAIN
Changes since 1.25: +89 -4 lines
Diff to previous 1.25
        Another interim commit. Much of links_admin is
        now functional. The sub-page to list referring
        nodes is not done yet.

        Added documentation for the new hooks in API.html.
        Developers, pay heed!

        Updated links_related and links_weblink to
        implement the new hooks as appropriate.

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 22 04:05:12 2008 UTC (11 months ago) by syscrusher
Branch: MAIN
Changes since 1.24: +84 -4 lines
Diff to previous 1.24
Further updates to links_admin, with some new APIs and a new hook in
links.inc. Still PRE-ALPHA version, but some of the form submit functions
now work as advertised.

Revision 1.20.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Dec 21 12:48:42 2008 UTC (11 months, 1 week ago) by syscrusher
Branch: DRUPAL-5
Changes since 1.20.2.5: +1 -5 lines
Diff to previous 1.20.2.5 , to branch point 1.20
Cleanup of extraneous comment at end of file.

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Dec 21 12:47:39 2008 UTC (11 months, 1 week ago) by syscrusher
Branch: MAIN
Changes since 1.23: +1 -5 lines
Diff to previous 1.23
Cleanup of extraneous comment at end of file.

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jul 17 02:50:26 2008 UTC (16 months, 1 week ago) by syscrusher
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, DRUPAL-6--1-0-BETA2
Changes since 1.22: +8 -6 lines
Diff to previous 1.22
Updated database write operations in links.inc to be compatible with D6.

Initial ("alpha") commit of partially-ported links_weblink module.

Minor bug fix to links_related module.

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 1 00:10:41 2008 UTC (22 months, 4 weeks ago) by syscrusher
Branch: MAIN
Changes since 1.21: +5 -10 lines
Diff to previous 1.21
Initial port of links.inc and links.module (but not the other modules) to
Drupal 6. This is ALPHA LEVEL CODE, not for production use.

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 14 18:52:15 2007 UTC (23 months, 2 weeks ago) by syscrusher
Branch: MAIN
Changes since 1.20: +93 -42 lines
Diff to previous 1.20
Bringing trunk (HEAD) up to latest code level.

Revision 1.20.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 12 04:07:28 2007 UTC (23 months, 2 weeks ago) by syscrusher
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-8, DRUPAL-5--1-9
Changes since 1.20.2.4: +3 -3 lines
Diff to previous 1.20.2.4 , to branch point 1.20
Fixes for bugs 114151, 150970, 150906, 188655, 147226, 195430, and 131637.
Refer to CHANGELOG.txt for details.

Revision 1.20.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 27 22:12:07 2007 UTC (2 years, 7 months ago) by syscrusher
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-7
Changes since 1.20.2.3: +26 -13 lines
Diff to previous 1.20.2.3 , to branch point 1.20
        API CHANGE: The function links_get_links() will now return NULL if no
        links are found, rather than returning an array with two elements
        that are themselves empty. This simplifies testing for values on
        return, but may cause errors for code that relied upon the function
        always returning an array before. This change is pursuant to #139067.

        API CHANGE: The function links_get_list() now accepts an additional
        parameter $statistics, which defaults to FALSE. This parameter
        determines whether the click count is returned as part of the
        link title, if other conditions (such as user permissions) would
        permit it so. Existing code that wants the click count enabled
        will need to add this parameter as TRUE.

Revision 1.20.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 26 23:34:18 2007 UTC (2 years, 7 months ago) by syscrusher
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-6
Changes since 1.20.2.2: +2 -2 lines
Diff to previous 1.20.2.2 , to branch point 1.20
Fixed critical bug #139529 in links.inc.

Revision 1.20.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 26 03:16:54 2007 UTC (2 years, 7 months ago) by syscrusher
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-5
Changes since 1.20.2.1: +42 -23 lines
Diff to previous 1.20.2.1 , to branch point 1.20
Committed a major feature enhancement and multiple bug fix patch from dman,
per issue #139130. See CHANGELOG.txt for details.

Revision 1.20.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 26 02:42:52 2007 UTC (2 years, 7 months ago) by syscrusher
Branch: DRUPAL-5
Changes since 1.20: +28 -9 lines
Diff to previous 1.20
Partial fix for #132209. See CHANGELOG.txt or the issue page for details.

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 11 01:46:21 2006 UTC (3 years, 2 months ago) by syscrusher
Branch: MAIN
CVS Tags: DRUPAL-5--1-2, DRUPAL-5--1-3, DRUPAL-5--1-4
Branch point for: DRUPAL-5
Changes since 1.19: +16 -24 lines
Diff to previous 1.19
Committing patch #82088 from Eaton, updating to Drupal 5.0 prerelease. This
is a significant fork from the 4.7 version. As Eaton points out, it is not
fully baked for 5.0 yet, but the basic core functions are working.

If testing 5.0 prerelease, you'll need to apply this update before trying
to run Drupal 5.0, because the 4.7 version of Links calls some deprecated
functions from Drupal core.

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 24 13:06:07 2006 UTC (3 years, 4 months ago) by syscrusher
Branch: MAIN
CVS Tags: DRUPAL-4-7--1-1
Branch point for: DRUPAL-4-7
Changes since 1.18: +3 -2 lines
Diff to previous 1.18
Fixed issues 73879 and 72459. Thanks to RayZ for two very good patches.

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 18 03:20:05 2006 UTC (3 years, 7 months ago) by syscrusher
Branch: MAIN
Changes since 1.17: +86 -1 lines
Diff to previous 1.17
Added some links statistics functions as suggested in issue #54503. This
functionality is experimental and will be added to over time. Test reports
welcome.

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 18 01:53:46 2006 UTC (3 years, 7 months ago) by syscrusher
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16
Fixed a typo.

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 18 01:47:57 2006 UTC (3 years, 7 months ago) by syscrusher
Branch: MAIN
Changes since 1.15: +14 -5 lines
Diff to previous 1.15
Added search-by-MD5 feature requested in issue #55113.

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 8 02:59:37 2006 UTC (3 years, 7 months ago) by syscrusher
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
Separated out 'access links statistics' permission to fix #57424.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 8 02:52:28 2006 UTC (3 years, 7 months ago) by syscrusher
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13
Fixed faulty localhost paths in links_l(), per issue #57431.

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 24 05:15:28 2006 UTC (3 years, 8 months ago) by syscrusher
Branch: MAIN
Changes since 1.12: +259 -62 lines
Diff to previous 1.12
API change: New function links_parse_url() added. This
function takes just about anything that works as a URL,
parses it out, and returns the parsed components as well
as a normalized version. The normalized version is
synthesized by concatenating the appropriate components
depending on the URL type, rather than just by using
regular expressions on the entire URL. This yields a more
thorough validation and normalization process.

API change: The function links_normalize_url() now calls
the new links_parse_url() function to do the heavy lifting.

NOTE: Because of the above, it is necessary to recalc all
of the MD5s in the {links} table. This can easily be done
by using "update.php" (from core Drupal) to apply UPDATE 2
to the Links package. Most of your URLs will not change,
but a few may be better normalized. In my testing, a
database with 500 real URLs had only two changes, both
of which were manually inspected and found to be legitimate
normalizations.

Changed links.install to fix length of {links_node}.module
to correct issue #55372. This had already been fixed in
links.mysql, but the change didn't propagate into the new
install file.

Removed trailing PHP delimiters from files per coding
standards (http://drupal.org/node/545), thereby fixing
issues #55577 and #45940.

Removed icky DOS carriage returns from lines in links.inc,
per issue #45940.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 17 05:16:05 2006 UTC (3 years, 8 months ago) by syscrusher
Branch: MAIN
Changes since 1.11: +13 -3 lines
Diff to previous 1.11
API change: The function links_goto_bynode now allows a zero
node ID, as long as the link ID is nonzero. This will perform
a redirect as usual, though it will not be able to tally the
click from any specific node.

Significant improvements to the weblink filter, fixing the
bug reported by RayZ in issue #53572 and improving its
handling of links.

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 23 04:52:23 2006 UTC (3 years, 10 months ago) by syscrusher
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10
Updated documentation, added display rendering of two of the link management
forms (they don't yet function on submit, but the data displays in the forms).
Eliminated some dead code from links.module.

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 21 22:47:51 2006 UTC (3 years, 10 months ago) by syscrusher
Branch: MAIN
Changes since 1.9: +27 -13 lines
Diff to previous 1.9
New links-hunting functionality, improved handling and tallying of outbound
link clicks, small bug fixes.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 21 19:21:28 2006 UTC (3 years, 10 months ago) by syscrusher
Branch: MAIN
Changes since 1.8: +7 -6 lines
Diff to previous 1.8
Multiple bug fixes, new link-hunting functionality for node body, rename
module collection from "links bundle" to "links package".

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 21 05:01:32 2006 UTC (3 years, 10 months ago) by syscrusher
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7
Multiple changes; see the CHANGELOG.txt file for details. There are
still some important bug fixes needed; this is an interim commit.
Of particular import is issue #44647, which is *not* fixed in this
commit but is next on my TODO list.

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 12 17:34:25 2005 UTC (3 years, 11 months ago) by syscrusher
Branch: MAIN
Changes since 1.6: +153 -11 lines
Diff to previous 1.6
Numerous changes to multiple files. See CHANGELOG.txt for details.

INTERIM COMMIT -- Many more things are working, but it's not soup yet.
The node editing page for links_related still has some problems, and block
functions for links_weblink are not functional yet. Other than that,
links_weblink and links_related are "mostly functional" at this point.
I would call this a late-alpha, still not quite a beta.

On the positive side, I believe the API (links.inc) is at a "beta" level
and should remain fairly stable from now until release. It is not formally
frozen, however.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 10 22:24:27 2005 UTC (3 years, 11 months ago) by syscrusher
Branch: MAIN
Changes since 1.5: +90 -8 lines
Diff to previous 1.5
Minor bug fixes in links.inc, relating to the $module context limiter on
load and save operations. Additional developer docs in API.txt.

NOTE: The links bundle should be considered "frozen" for revisions at the
moment, because I am in the midst of a major code update to all of the
.module files in the package right now.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 9 04:46:45 2005 UTC (3 years, 11 months ago) by syscrusher
Branch: MAIN
Changes since 1.4: +13 -18 lines
Diff to previous 1.4
Code formatting cleanup, fixed missing constants in settings #options
parameters (the specific constants are important, and defaults were being
assumed), and added the beginnings of some API documentation.

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 16 03:22:37 2005 UTC (4 years, 5 months ago) by syscrusher
Branch: MAIN
Changes since 1.3: +101 -3 lines
Diff to previous 1.3
Numerous small changes and some new features. See CHANGELOG.txt for
details.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 15 18:19:06 2005 UTC (4 years, 5 months ago) by syscrusher
Branch: MAIN
Changes since 1.2: +2 -7 lines
Diff to previous 1.2
Bug fixes and minor enhancements in the save and find functions.

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jun 14 17:27:13 2005 UTC (4 years, 5 months ago) by syscrusher
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1
Corrected SQL syntax error on deleting {links_node} entries.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 10 04:29:09 2005 UTC (4 years, 5 months ago) by syscrusher
Branch: MAIN
This is the initial public (non-sandbox) commit of the code for the new
"links" bundle. It is a multi-module set that offers the following features:

1. An API for managing URLs in a generic way, and for associating these
   links in a many-to-many relationship with nodes. Each link is
   "normalized" internally, to try to merge references to the same URL
   in the database. If the same URL is used multiple times, it appears
   only once but with many node references in the {links_node} table.
   This helps to make processes such as link monitoring and dead link
   detection more efficient. The API also allows each link-node
   association to (optionally) provide an unique node-local title that
   overrides the global title for that particular URL, but only when
   that node is being displayed. In other words, the same URL can appear
   to have multiple different titles.

2. A main links.module that governs the behavior of the bundle's global
   features, and which implements common functionality such as outlink
   tabulation of clicks. Click tabulation is by node and link, so that it
   is possible to find out not only how many times an outbound link has
   been followed, but also how many times it has been followed from each
   node that refers to it.

3. A links_related.module which allows the administrator to add a link
   field to any desired node types in the system. Currently, the node type
   setting is just a boolean flag, and if on, the node can have zero to
   infinity links. In the next version, however, this will become an
   integer where 0 means no links for the given node type, +N means "up to
   N links" for each node of that type, and -N means "exactly N links
   required (non-empty URL).

4. A links_weblink.module which defines a node type of 'weblink', which
   behaves very much like the node type of the same name by Ber Kessels,
   and which in fact is based on his module's code base but uses the
   new links API.

The SQL schema for monitoring is in this release, but the monitoring
module itself is not yet finished.

This code is EXPERIMENTAL and is under extremely active development. A
project will be created for issue reporting along with this new CVS
release.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2