Skip to content

Instantly share code, notes, and snippets.

@cmourizard
Created February 4, 2013 21:53
Show Gist options
  • Save cmourizard/4710047 to your computer and use it in GitHub Desktop.
Save cmourizard/4710047 to your computer and use it in GitHub Desktop.
<?php
require_once 'modules/ModuleBuilder/parsers/ParserFactory.php';
$moduleName = 'Accounts';
$buttonCode = 'TODO';
$parser = ParserFactory::getParser("detailview", $moduleName);
$parser->_viewdefs['templateMeta']['form']['buttons']['buttonKeyCode'] = array ('customCode' => $buttonCode);
$parser->handleSave(false);
@bickart
Copy link

bickart commented Feb 4, 2013

Perfect... this is what I'm looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment