function new_relic_rpm_deploy_submit in New Relic 7
FormAPI submit callback for the manual deployment creation.
_state
Parameters
$form:
File
- ./
new_relic_rpm.settings.inc, line 256 - New Relic Drupal setting form and callbacks.
Code
function new_relic_rpm_deploy_submit($form, &$form_state) {
$deployments = _new_relic_rpm_deploy($form_state['values']['deploy_user'], $form_state['values']['deploy_description'], $form_state['values']['deploy_changelog'], $form_state['values']['deploy_revision']);
if (strlen($deployments) > 20) {
drupal_set_message(t('New Relic deployment created successfully'), 'status');
}
else {
drupal_set_message(t('New Relic deployment failed to be recorded. Please ensure your account is configured on the <a href="@settings">New Relic Drupal admin page</a>.', array(
'@settings' => url('admin/config/development/new-relic-rpm'),
)), 'error');
}
}