root/devel/mod/community/README

Revision 1248, 1.2 kB (checked in by diegoramirez, 1 year ago)

Units to mod

Line 
1 ----------------------------------------------------------------
2 | COMMUNITY MODULE: Configuration options and Extension points |
3 ----------------------------------------------------------------
4 Configuration Options
5 =====================
6
7 In 'lib/communities_config.php'
8
9 COMMUNITY_MEMBERS_PER_ROW (default value: 2)
10   To configure how many items show per row in:
11     - communities page
12     - comunity members page
13
14 COMMUNITY_ICON_SIZE (default value: 70)
15   To configure the icon's size in listings
16
17 COMMUNITY_CONTEXT (default value: network)
18   Allows to create a new context for community functions.
19   The default behavior (with value 'network') add the
20   community functions to the 'network' context.
21
22 COMMUNITY_COMPACT_VIEW (default value: true)
23   In the compact view you can see your owned and not owned
24   communities in the same page.
25
26 Extension points
27 ================
28 This plug-in add the following plug-in hooks:
29
30   plugin_hook("community","publish",$comunity_object);
31   plugin_hook("community","delete",$comunity_id);
32
33 If you want to listen for this event you need to register:
34
35   listen_for_event("community","publish",<function name>);
36   listen_for_event("community","delete",<function name>);
Note: See TracBrowser for help on using the browser.