Open plirof2 opened 7 years ago
Hint 1: dynamic get module name :
If your module file is sites/default/modules/MYMODULE/MYMODULE.module then module name is MYMODULE.
You can get it programmatically inside MYMODULE.module file using following command:
$module_name = basename(__FILE__, '.module');
NOTEQ : this doean't work. It returns the string "ConfigDevelAutoImportSubscriber.php"
Hint 2 : dynamic get module path
chenge the static module path of this line : $import_these_folder_location="modules/config_devel/import_these/";
to a dynamic one