From 8965bb975d63036194d8cd1a26e88391f2ca79e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20van=20Eeden?= <github.com@spam.mieg.nl> Date: Tue, 26 Mar 2019 16:36:01 +0100 Subject: [PATCH] Update bootstrap.md --- docs/framework/bootstrap.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/framework/bootstrap.md b/docs/framework/bootstrap.md index 76e42dc3..e2a01fe0 100644 --- a/docs/framework/bootstrap.md +++ b/docs/framework/bootstrap.md @@ -35,7 +35,7 @@ If you are writting an independent script you can download the [cv](https://gith eval(`cv php:boot`); // Call CiviCRM function e.g. API -$contact = civicrm_api3('contact', 'get' array( +$contact = civicrm_api3('contact', 'get', array( 'first_name' => 'Mr', 'last_name' => 'T', )); @@ -51,7 +51,7 @@ If you are writing a module in Drupal, Backdrop or WordPress, use the "civicrm_i civicrm_initialize(); // Call CiviCRM function e.g. API -$contact = civicrm_api3('contact', 'get' array( +$contact = civicrm_api3('contact', 'get', array( 'first_name' => 'Mr', 'last_name' => 'T', )); @@ -68,7 +68,7 @@ require_once CIVICRM_CORE_PATH .'CRM/Core/Config.php'; $config = CRM_Core_Config::singleton(); // Call CiviCRM function e.g. API -$contact = civicrm_api3('contact', 'get' array( +$contact = civicrm_api3('contact', 'get', array( 'first_name' => 'Mr', 'last_name' => 'T', )); @@ -88,7 +88,7 @@ $config = CRM_Core_Config::singleton(); // CRM_Utils_System::loadBootStrap(array(), FALSE); // Call CiviCRM function e.g. API -$contact = civicrm_api3('contact', 'get' array( +$contact = civicrm_api3('contact', 'get', array( 'first_name' => 'Mr', 'last_name' => 'T', )); -- GitLab