Custom options

ChangeĀ 

'type' => 'method',

Add

function options($parms, $value, $id, $attributes) {

For more info look at githubSync plugin.