F2F | Documentation | Hooks
F2F hooks are XSLT-based data transforms, referred to by their URL, which are detailed in presentation at http://altruists.org/ff11. The F2F core contains the following 10 hooks:
| URI | Description |
|---|---|
| http://friend2friend.net/hooks/activate | "Do something with this data", typically used for when people double click on stuff. |
| http://friend2friend.net/hooks/context-menu | "Choose what to do with this data", used for when people want to choose what to do with stuff. As yet unused. |
| http://friend2friend.net/hooks/delete | "Delete this data", used by the desktop for when people drop and drag stuff to the recycle bin. |
| http://friend2friend.net/hooks/image | Returns an SVG image suitable for showing this data. |
| http://friend2friend.net/hooks/imageURI | "Get an image URI". Returns the URI of an image suitable for this data. |
| http://friend2friend.net/hooks/name | "Give me a name". Returns a string for identifying the data questioned. |
| http://friend2friend.net/hooks/parent | "Get bigger picture". Returns an object which is 'above' this in the hierarchy (e.g. parent folder). Unused as yet |
| http://friend2friend.net/hooks/render | "Show me it". Mark up this object in XHTML for viewing. |
| http://friend2friend.net/hooks/schema | "Get the schema that defines this data", used by the /validate hook. |
| http://friend2friend.net/hooks/validate | "Validate this data", mainly used serverside. |
Generated 2009-06-23 11:14:20 Europe/London using DocBook from a docbook.xml by F2F Documentation Module.