| | 26 | == Configuration file. == |
| | 27 | |
| | 28 | Module's update script has its own '''config.php''' file. The main differences between module's and update's configuration files are listed below. Update's configuration file has the following additional parameters |
| | 29 | 1. Config file should specify the version which it can be applied to. Also it should specify the version which you'll have after the update was applied. |
| | 30 | {{{ |
| | 31 | 'version_from' => '1.0.0', |
| | 32 | 'version_to' => '1.1.0', |
| | 33 | }}} |
| | 34 | 2. Home directory and URI of the module which the update relates to. |
| | 35 | {{{ |
| | 36 | 'module_dir' => 'me/bloggie/', |
| | 37 | 'module_uri' => 'bloggie', |
| | 38 | }}}[[BR]] |
| | 39 | Update's configuration file doesn't have the following parameters in comparison with module's config file. |
| | 40 | 1. Everything related to uninstallation. |
| | 41 | {{{ |
| | 42 | 'uninstall' => array ( |
| | 43 | ... |
| | 44 | ), |
| | 45 | ... |
| | 46 | 'uninstall_permissions' => array(), |
| | 47 | ... |
| | 48 | 'uninstall_info' => array( |
| | 49 | 'introduction' => 'uninst_intro.html', |
| | 50 | 'conclusion' => 'uninst_concl.html' |
| | 51 | ), |
| | 52 | }}} |
| | 53 | 2. Dependencies settings. |
| | 54 | {{{ |
| | 55 | 'dependencies' => array(), |
| | 56 | }}} |