function install_gmaps() { require_once 'ModuleInstall/ModuleInstaller.php'; $ModuleInstaller = new ModuleInstaller(); $ModuleInstaller->install_custom_fields(getCustomFields()); installJJWHooks(); }
function add_social_field($module, $field_name) { $field = array(array('name' => $field_name, 'label' => 'LBL_' . strtoupper($field_name), 'type' => 'varchar', 'module' => $module, 'ext1' => 'LIST', 'default_value' => '', 'mass_update' => false, 'required' => false, 'reportable' => false, 'audited' => false, 'importable' => 'false', 'duplicate_merge' => false)); $layout[$module] = $field_name; require_once 'ModuleInstall/ModuleInstaller.php'; $moduleInstaller = new ModuleInstaller(); $moduleInstaller->install_custom_fields($field); //$moduleInstaller->addFieldsToLayout($layout); $this->create_panel_on_view('detailview', $field, $module, 'LBL_PANEL_SOCIAL_FEED'); /* now add it to the edit view. */ $this->create_panel_on_view('editview', $field, $module, 'LBL_PANEL_SOCIAL_FEED'); }