We disable certain deploy plans and endpoints, depending on which machine we are running on in a multi-server setup - for instance we only want our stage server to be able deploy content to out production machine, not our test server. However the form element in deploy_manage_ui.module shows all plans, which is awkward. Simple patch to filter out disabled plans from the UI follows.

Comments

deadbeef’s picture

Status: Active » Needs review
StatusFileSize
new583 bytes

Patch to filter out disabled plans from UI

deadbeef’s picture

StatusFileSize
new529 bytes

Sorry, attached the wrong patch. Here is the correct one.

attiks’s picture

Thanks, but this is never going to work on PHP 5.2 :/ so I think we need a 'real' function to do this, or a foreach loop.

dixon_’s picture

What we need to do is to inject the appropriate arguments when we only want enabled plans. Something like this:

$enabled_plans = deploy_plan_load_all(array('disabled' => FALSE));

That should do it I think.

dixon_’s picture

Status: Needs review » Needs work
dixon_’s picture

Issue summary: View changes
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.