begin making the webhook endpoint

This commit is contained in:
2016-03-13 11:25:25 +01:00
parent b197c92c8d
commit 55975f03dc
2 changed files with 19 additions and 4 deletions

View File

@ -33,11 +33,13 @@ function fulcrm_webhook_admin_form( $form, &$form_state ) {
'#collapsed' => FALSE,
'detail' => array( '#type' => 'item',
'#title' => '',
'#markup' => '<p>You need to enable SSL on this Drupal instance to continue.</p><p>fulcrm will only send data to HTTPS webhooks.</p>' ),
'#markup' => ( '<p>You need to enable SSL on this Drupal site to continue.</p>' .
'<p>fulcrm will only send data to HTTPS webhooks.</p>' ),
),
);
$form[ 'actions' ] = array( '#type' => 'actions' );
$form[ 'actions' ][ 'save' ] = array( '#type' => 'link',
'#title' => t('Reload'),
'#title' => t('Reload with SSL'),
'#href' => str_replace( 'http://', 'https://', url( 'admin/config/services/fulcrm/webhook', array( 'absolute' => TRUE ) ) ),
);
}