/**
* Retrieve the basic contact type associated with given subType.
*
- * @param array /string $subType contact subType.
- * @return array/string of basicTypes.
+ * @param array|string $subType contact subType.
+ * @return array|string
+ * basicTypes.
*/
public static function getBasicType($subType) {
static $_cache = NULL;
else {
$name = self::getBasicType($contactName);
if (!$name) {
- return;
+ return NULL;
}
$value = ['name' => "New $name"];
CRM_Core_BAO_Navigation::retrieve($value, $navinfo);
$customDataCount = CRM_Core_DAO::singleValueQuery($sql);
if (!empty($customDataCount)) {
- $dao->free();
return TRUE;
}
}
* Custom group id.
* @param array $subtypes
* List of subtypes related to which entry is to be removed.
+ * @param array $subtypesToPreserve
*
* @return bool
*/