In the IActionable property (public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions { get { } }) you can do something like the following:
public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions
{
get
{
//create a new action to add an item, this will be added to the controls
// see if your setting has been set in the Settings already
string someSetting = Settings["someSetting"] as string;
ModuleActionCollection actions = new ModuleActionCollection();
if (someSetting != null) // or you could do someSetting == "some value"
actions.Add(this.GetNextActionID(), Localization.GetString("EditMenu.Action", LocalResourceFile), ModuleActionType.AddContent, "", "", this.EditUrl(), false, SecurityAccessLevel.Edit, true, false);
// this action will always add assuming logged in person is host
actions.Add(this.GetNextActionID(), Localization.GetString("LicenseMenu.Action", LocalResourceFile), ModuleActionType.ContentOptions, "", "", this.EditUrl("Licensing"), false, SecurityAccessLevel.Host, true, false);
return actions;
}
}