Table of Contents Previous Next

Sugar Developer Guide

Version 5.1


Chapter 4 Customizing Sugar : Module Loader : Installdef Definition

Installdef Definition
The following section outlines the parameters specified in the $installdef array contained in the manifest file (manifest.php). An example manifest file is included later for your reference.
$installdef array elements are used by the Module Loader to determine the actual installation steps that need to be taken to install the extension.
id - A unique name for your module, i.e. “Songs”
copy - An array detailing files to be copied to the Sugar directory. A source path and destination path must be specified for each file or directory. See the example manifest file below for details.
language - An array detailing individual language files for your module. The source path, destination file, and language pack name must be specified for each language file. See the example manifest file below for details.
layoutdefs - An array detailing individual layoutdef files, which are used primarily for setting up subpanels in other modules. The source path and destination module must be specified for each layoutdef file. See the example manifest file below for details.
vardefs - An array detailing individual vardef files, which are used primarily for defining fields and non many-to-many relationships in other modules. The source path and destination module must be specified for each vardef file. See the example manifest file below for details.
menu - An array detailing the menu file for your new module. A source path and destination module must be specified for each menu file. See the example manifest file below for details.
beans - An array specifying the bean files for your new module. The following subdirectives must be specified for each bean:
o
o
o
o
o
relationships - An array detailing relationship files, used to link your new modules to existing modules. A module name, meta_data path, and module_vardefs path must be specified for each relationship. See the example manifest file below for details.
o
custom_fields - An array detailing custom fields to be installed for your new module. The following subdirectives must be specified for each custom field:

Table of Contents Previous Next

Copyright 2004-2008 SugarCRM Inc.
Product License