/[drupal]/contributions/modules/links/PREFIXES.txt
ViewVC logotype

Contents of /contributions/modules/links/PREFIXES.txt

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


Revision 1.2 - (show annotations) (download)
Tue Aug 1 14:56:19 2006 UTC (3 years, 3 months ago) by syscrusher
Branch: MAIN
CVS Tags: DRUPAL-5--1-12-BETA1, DRUPAL-5--1-9, DRUPAL-5--1-8, DRUPAL-5--1-5, DRUPAL-5--1-7, DRUPAL-5--1-6, DRUPAL-5--1-3, DRUPAL-5--1-2, DRUPAL-4-7--1-1, DRUPAL-5--1-4, DRUPAL-6--1-0-BETA14, DRUPAL-6--1-0-BETA13, DRUPAL-6--1-0-BETA12, DRUPAL-6--1-0-BETA11, DRUPAL-6--1-0-BETA10, DRUPAL-5--1-11, DRUPAL-5--1-10, DRUPAL-5--1-13, DRUPAL-5--1-12, DRUPAL-6--1-0-BETA9, DRUPAL-6--1-0-BETA8, DRUPAL-6--1-0-BETA3, DRUPAL-6--1-0-BETA2, DRUPAL-6--1-0-BETA1, DRUPAL-6--1-0-BETA7, DRUPAL-6--1-0-BETA6, DRUPAL-6--1-0-BETA5, HEAD
Branch point for: DRUPAL-4-7, DRUPAL-6--1, DRUPAL-5
Changes since 1.1: +3 -1 lines
File MIME type: text/plain
Separated general link administration from link behavior control, and put
the former into links_admin.module while the latter remains in links.module.
Updated documentation in preparation for a branch to DRUPAL-4-7 for all
components except links_admin.module.
1 $Id: PREFIXES.txt,v 1.1 2006/03/17 16:17:09 syscrusher Exp $
2
3 This file is an informally-maintained registry of the module prefixes that are
4 used in the Links API calls for the $module parameter.
5
6 The actual URLs cataloged by the Links API are global to all Drupal modules,
7 but the references in the {links_node} table that map these URLs to individual
8 nodes can be made local to a specific module or module package.
9
10 Module developers who use the Links API may request a namespace prefix string
11 that allows their modules to create such application-specific link references.
12 Once you have a prefix, anything "under" that prefix is yours to name as you
13 wish.
14
15 Suppose, for instance, that you register the prefix "example". You can then
16 store links with $module="example" and be (reasonably) assured that no other
17 module will tinker with the link-node mapping (the URL itself, however, is
18 managed by links.module globally).
19
20 The underscore can be used to create sub-namespaces within your registered prefix,
21 to any desired nesting depth. So if instead of just example.module you are
22 creating "the Example package" with modules example.module, example_view.module,
23 example_taxonomy.module, and so on, you can (if you wish) carve up your
24 namespace with $module="example", $module="example_view", and
25 $module="example_taxonomy". You are not *required* to do this -- it is purely
26 up to you, depending on whether your modules should share link references or
27 treat them separately. Basically, you may place any string after the "example_"
28 prefix that you wish as long as it fits into the database column.
29
30 Prefix registrations should be considered case-insensitive; that is, if you
31 reserve "example" no one else can reserve "Example" or "EXAMPLE" because they
32 are treated as equal by the API. Also, ownership of "example" implies ownership
33 of "example_*" but NOT of "example*" (so, for instance, you don't get
34 "examples" or "examplemania" or "examplethemes").
35
36
37 REGISTRATION PROCEDURE:
38
39 Please DO NOT update the following lists. This information is kept by
40 the Links Package maintainer, Syscrusher (http://drupal.org/user/9184).
41 To request a new prefix registry, or remove one no longer needed,
42 use the Drupal contact form for Syscrusher.
43
44 RESERVED PREFIXES:
45
46 (empty string) Reserved to indicate a "don't care" or "any"
47 selection criterion for finding links for a
48 node.
49
50 links Reserved for the Links Package and its included
51 modules.
52
53 drupal Reserved for future use.
54
55 example As in domain names, the word "example" in this
56 context is reserved for illustrative purposes
57 in documentation.
58
59 REGISTERED PREFIXES:
60
61 tagmark budda (http://drupal.org/user/13164)
62
63 cck Content Construction Kit (CCK)
64

  ViewVC Help
Powered by ViewVC 1.1.2