/[drupal]/contributions/modules/user_titles/API.txt
ViewVC logotype

Contents of /contributions/modules/user_titles/API.txt

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


Revision 1.2 - (show annotations) (download)
Wed Jan 7 01:49:18 2009 UTC (10 months, 2 weeks ago) by agileware
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +34 -0 lines
File MIME type: text/plain
Ported new functionality from D5 version:
- Hookable points system
- Removed javascript from settings
- Can now add an image to a user title
1
2 User Titles defines a hook function other modules can define. It is:
3
4 hook_user_titles($op, $uid = null)
5 Use this function to describe what point scheme your module defines
6 for User Titles.
7
8 $op: The operation to be acted upon
9 'register'
10 Return module name so that module can be called later
11
12 'name'
13 Return translated pretty module name for display
14 Example:
15 return t('Dollars donated');
16
17 'description'
18 Return translated description for module's point scheme
19 Example:
20 return t('Points based on dollars donated');
21
22 'units'
23 Return short, capitalized name of what these points are.
24 Example:
25 return t('Dollars');
26
27 'url'
28 Drupal menu path to module's help or admin page to be displayed.
29 Example:
30 return "admin/help/donate";
31
32 'get'
33 Return number of points for $uid
34

  ViewVC Help
Powered by ViewVC 1.1.2