Custom options

Change 

'type' => 'method',

Add

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

For more info look at githubSync plugin.