Changed access control extensions support for modules/plugins to use unique extension...
[fa-stable.git] / installed_extensions.php
index f18c1ff6563a7727d4f76f50152806c8bc1a75d0..8afb638b908c9a63899fe628a634f3b8400cb9af 100644 (file)
@@ -1,23 +1,23 @@
 <?php
 
-/* How to make new entries here
-
--- if adding extensions at the beginning of the list, make sure it's index is set to 0 (it has ' 0 => ')
--- 'app_file' is the application file name to be put into folder applications
--- 'name' is the name of the extension module. Will become the index of the application
--- 'title' is the Menu Title
--- 'folder' is the folder where the extension files exist
--- 'acc_file' is path inside extension folder to optional file with $security_areas/$security_sections extensions 
+/* List of installed additional modules and plugins. If adding extensions manually 
+       to the list make sure they have unique, so far not used extension_ids as a keys,
+       and $next_extension_id is also updated.
+       
+       'name' - name for identification purposes;
+       'type' - type of extension: 'module' or 'plugin'
+       'path' - FA root based installation path
+       'filename' - name of module menu file, or plugin filename; related to path.
+       'tab' - index of the module tab (new for module, or one of standard module names for plugin);
+       'title' - is the menu text (for plugin) or new tab name
+       'active' - current status of extension
+       'acc_file' - (optional) file name with $security_areas/$security_sections extensions; 
+               related to 'path'
+       'access' - security area code in string form
 */
 
-$installed_extensions = array ();
+$next_extension_id = 1; // unique id for next installed extension
 
-// example
-/*
 $installed_extensions = array (
-       0 => array ('app_file' => 'organizer.php', 'name' => 'organizer', 'title' => 'Organizer', 'folder' => 'organizer',
-       'acc_file'=>'')),
-       array ('app_file' => 'payroll.php', 'name' => 'payroll', 'title' => 'Payroll', 'folder' => 'payroll',
-               'acc_file'=>'includes/access_exts.inc'));
-*/     
+       );
 ?>
\ No newline at end of file