Skip to content

Instantly share code, notes, and snippets.

@leemason
Created November 2, 2013 21:58
Show Gist options
  • Save leemason/7283959 to your computer and use it in GitHub Desktop.
Save leemason/7283959 to your computer and use it in GitHub Desktop.
<?php
public function options() {
return array(
'id'=>array('type' => 'boolean', 'required' => true),
'type'=>'button_set',
'title'=>array('type' => 'string', 'required' => true),
'subtitle'=>array('type' => 'string', 'required' => true),
'desc'=> array('type' => 'string', 'required' => true),
'required' => true,
'customizer' => true,
'validation' => false,
'options' => array(
0 => array('type'=>'string', 'title'=>'key'),
1 => array('type'=>'string', 'title'=>'Text', 'desc'=>'Text that appears in the button'),
),
'default'=> array('type'=>'string')
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment