You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.0 KiB
PHP
40 lines
2.0 KiB
PHP
<?php /* -*- php -*- */
|
|
|
|
function fulcrm_webhook_menu() {
|
|
/*
|
|
$items[ 'admin/config/services/fulcrm' ] = array( 'page callback' => 'system_admin_menu_block_page',
|
|
'file' => 'system.admin.inc',
|
|
'file path' => drupal_get_path('module', 'system'),
|
|
'title' => 'fulcrm',
|
|
'description' => 'Configuration integration with fulcrm.org.',
|
|
'position' => 'right',
|
|
'access callback' => 'user_access',
|
|
'access arguments' => array('access administration pages'),
|
|
);
|
|
*/
|
|
$items[ 'admin/config/services/fulcrm/webhook_user' ] = array( 'page callback' => 'fulcrm_webhook_user_admin',
|
|
'file' => 'fulcrm_webhook_user.admin.inc',
|
|
'title' => 'fulcrm user webhook',
|
|
'description' => 'Configure user webhook for fulcrm.org.',
|
|
'access callback' => 'user_access',
|
|
'access arguments' => array('administer fulcrm webhooks'),
|
|
);
|
|
return $items;
|
|
}
|
|
|
|
function fulcrm_webhook_create_entity_for_fulcrm_person( &$vars ) {
|
|
// $vars[ 'data' ];
|
|
// $vars[ 'entity' ] = XXX;
|
|
// $vars[ 'entity_type' ] = 'user';
|
|
// $vars[ 'entity_id' ] = XXX;
|
|
}
|
|
|
|
function fulcrm_webhook_update_entity_for_fulcrm_person( &$vars ) {
|
|
// $vars[ 'data' ];
|
|
// $vars[ 'entity' ];
|
|
}
|
|
|
|
function fulcrm_webhook_delete_entity_for_fulcrm_person( &$vars ) {
|
|
// $vars[ 'entity' ];
|
|
}
|