root/devel/mod/file/README

Revision 1081, 1.3 kB (checked in by ben, 2 years ago)

Integrating content toolbar and file repository integration by Diego Ramirez.

Line 
1 -----------------------------------------------------------
2 | FILE MODULE: Configuration options and Extension points |
3 -----------------------------------------------------------
4
5 Configuration Options
6 ======================
7
8 In 'lib/file_config.php'
9
10 ALLOW_WIZARD_UPLOAD (default value: true)
11         To configure if you allows to upload files through the wizard
12
13 WIZARD_SIMPLIFIED_ADD_FILE (default value: true)
14         To configure if you want a simplified upload form in the wizard
15        
16 ALLOW_WIZARD_FILE_DELETE (default value: true)
17         To configure if you allows to delete files through the wizard
18
19 Extension points
20 ================
21
22 Behavior
23 --------
24 You can modify the behavior of folder management adding a new handler to:
25   $CFG->folders->handler
26   For example:
27      $CFG->folders->handler["elgg"]['menuitem'] = __gettext("Default file folder");
28      $CFG->folders->handler["elgg"]['view'] = "file_folder_view";
29      $CFG->folders->handler["elgg"]['preview'] = "file_folder_preview";
30
31 Where:
32         'menuitem'      Specifies the display text in the Folder type select.
33         'view'          Specifies the function to be called to show a folder.
34         'preview'       Specifies the function the be called to preview a folder
35
36
37 Visualization
38 -------------
39 weblogs:text:process
40         File(s):
41                 - file/lib/weblogs_posts_view.php
42         Action:
43                 Allow plugins to set add functionality to the process of the posts text
Note: See TracBrowser for help on using the browser.