General developer forum

Is it possible to rename a plugin?

 
Picture of Dan Marsden
Re: Is it possible to rename a plugin?
Core developersMoodle Course Creator Certificate holdersParticularly helpful MoodlersPlugin developersPlugins guardiansTestersTranslators
If you're talking about the Moodle plugins db - then yes you will need to register a new plugin. you can update the description of the old one to point to the new one. You may also want to write some form of upgrade/conversion script to allow people to upgrade from the old plugin to your new one. 


Here's how I managed the change from mod_attforblock to mod_attendance - it might be useful?

https://github.com/danmarsden/moodle-mod_attendance/blob/MOODLE_27_STABLE/version.php#L34

It's a bit nasty and is really an abuse of verison.php but worked ok - I then eventually removed it from version.php

 
Average of ratings: Useful (1)