Skip to content

Instantly share code, notes, and snippets.

@ceckoslab
Last active August 29, 2015 14:00
Show Gist options
  • Save ceckoslab/11250805 to your computer and use it in GitHub Desktop.
Save ceckoslab/11250805 to your computer and use it in GitHub Desktop.
Jarlssen_ChooserWidget - custom chooser example
$chooserHelper = Mage::helper('jarlssen_chooser_widget/chooser');
$customChooserConfig = array(
'input_name' => 'entity_link',
'input_label' => $this->__('Custom entity'),
'button_text' => $this->__('Select entity…'),
'required' => true
);
$chooserBlock = 'custom_module/chooser';
$chooserHelper->createChooser($model, $fieldset, $customChooserConfig, chooserBlock);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment