Hi
I’ve made a simple package to modify Accounts list view.
After installation of my module everything works OK, but … my package is at 'uploaded packages" not at “installed extensions” so I can’t uninstall
manifest.php
<?php
$manifest = array(
array(
'acceptable_sugar_versions' => array()
),
array(
'acceptable_sugar_flavors' => array()
),
'readme' => '',
'key' => '342354357743434',
'author' => 'xxxxxx.com',
'description' => 'Walidacja i formatowanie numeru NIP.',
'icon' => '',
'is_uninstallable' => true,
'name' => 'NIP formatting and validation',
'published_date' => '2017-11-02 12:00:00',
'type' => 'module',
'version' => 'v1.0',
'remove_tables' => 'prompt'
);
$installdefs = array(
'id' => 'mg_custom0001',
'copy' => array(
array(
'from' => '<basepath>/custom/',
'to' => 'custom/'
)
),
'logic_hooks' => array(
array(
'module' => 'Accounts',
'hook' => 'process_record',
'order' => 1,
'description' => 'NIP format',
'file' => 'custom/include/mg_NIP/mg_FormatNipAccountsList.php',
'class' => 'NIP_LogicHook',
'function' => 'changeNIPFormat'
)
)
);