General developer forum

Want to Hide settings while plugin installation. Can this possible?

 
Picture of Nilesh Pathade
Want to Hide settings while plugin installation. Can this possible?
 

Hi All,

I am going to developed plugin for Moodle. And don't want set any settings and not want to ask Setting after installation means (  Immediately after installation ). 


I want only set setting of plugin by : (For example : course format plugin settings)

Site Administration -> plugin -> Course format -> Settings


Is this possible ?

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Want to Hide settings while plugin installation. Can this possible?
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

In install.php for the plugin, make the appropriate set_config calls to set the values in the database as part of the install.

 
Average of ratings: -
Picture of Nilesh Pathade
Re: Want to Hide settings while plugin installation. Can this possible?
 

Thanks for reply Tim


Could you please more explain me? I am getting.  I don't have install.php in my plugin folder.

 
Average of ratings: -
Davo
Re: Want to Hide settings while plugin installation. Can this possible?
Core developersParticularly helpful MoodlersPlugin developers

If you don't already have a db/install.php file for your plugin, then you need to create one.

See https://docs.moodle.org/dev/Upgrade_API#install.php for some basic documentation, but look for an existing install.php in another plugin for an example.


 
Average of ratings: -
Picture of Nilesh Pathade
Re: Want to Hide settings while plugin installation. Can this possible?
 

Hi all, 


I am still confused with this. could you please tell any plugin name to take refer to solve this issue. 


I want to Hide setting while plugin installation.  

 
Average of ratings: -
Picture of Steffen Hippeli
Re: Want to Hide settings while plugin installation. Can this possible?
Plugin developers

So, you suggest to set the values manually to hide this step from the user as i understand.


 
Average of ratings: -
Picture of Nilesh Pathade
Re: Want to Hide settings while plugin installation. Can this possible?
 

No Steffen,


I don't want to show setting.php page after intimately after installation. 

I am create course format plugin and that plugin can manage only following way. 

Site Administration -> Plugin -> Course Format -> myPlugin name.


 

 
Average of ratings: -