function run() {
CRM_Utils_System::setTitle(ts('API explorer and generator'));
- CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'templates/CRM/Admin/Page/APIExplorer.js');
+ CRM_Core_Resources::singleton()
+ ->addScriptFile('civicrm', 'templates/CRM/Admin/Page/APIExplorer.js')
+ ->addScriptUrl('//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js', 99)
+ ->addStyleUrl('//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css', 99);
$this->assign('operators', CRM_Core_DAO::acceptedSQLOperators());
- $this->assign('actions', array(
- 'get',
- 'create',
- 'delete',
- 'getfields',
- 'getactions',
- 'getcount',
- 'getsingle',
- 'getvalue',
- 'getoptions',
- 'getlist',
- ));
return parent::run();
}