This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get font awesome file icon class for specific MIME Type | |
* @see https://gist.github.com/guedressel/0daa170c0fde65ce5551 | |
* | |
*/ | |
function ($mime_type) { | |
// List of official MIME Types: http://www.iana.org/assignments/media-types/media-types.xhtml | |
$icon_classes = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/includes/utils.inc b/includes/utils.inc | |
index dc502c5..97757dc 100644 | |
--- a/includes/utils.inc | |
+++ b/includes/utils.inc | |
@@ -806,16 +806,6 @@ function wf_crm_get_fields($var = 'fields') { | |
'table' => 'group', | |
'expose_list' => TRUE, | |
); | |
- $tagsets = array('' => t('Tag(s)')) + CRM_Core_BAO_Tag::getTagSet('civicrm_contact'); | |
- foreach ($tagsets as $pid => $name) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Trait mixed into BAOs who support bulk-save operations | |
*/ | |
trait CRM_Core_BulkSaveTrait { | |
/** | |
* @param $params | |
* @return CRM_Core_DAO|NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('cowModule').factory('cowTrait', function() { | |
// Private function (not available to controller using this trait) | |
function getSound() { | |
return 'Moo'; | |
} | |
// Public properties & methods for use as a trait | |
return { | |
cows: 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Civi\Api4\Contribution; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Civi\Mixin\EntityTypesXmlV1; | |
class Loader { | |
private \CRM_Extension_MixInfo $mixInfo; | |
public function __construct(\CRM_Extension_MixInfo $mixInfo) { | |
$this->mixInfo = $mixInfo; |
OlderNewer