Skip to content

Instantly share code, notes, and snippets.

View UshaMakoa's full-sized avatar

Usha Matisson UshaMakoa

View GitHub Profile
@UshaMakoa
UshaMakoa / gist:1842b8b0410f8a8fd1de44e2cc920e44
Created May 11, 2022 06:14 — forked from jackrabbithanna/gist:295ee250ea702f2bd18c62dc587bfd4d
civicrm_customs.module -- D7 Custom VBO action to update participant status
function civicrm_customs_action_info() {
return array(
'civicrm_customs_update_participant_status_action' => array(
'type' => 'civicrm_participant',
'label' => t('Update participant status'),
'behavior' => array('views_property'),
'configurable' => FALSE,
'vbo_configurable' => TRUE,
'triggers' => array('any'),
'pass rows' => TRUE,
@UshaMakoa
UshaMakoa / civicrm_customs.module
Created May 10, 2022 23:07 — forked from jackrabbithanna/civicrm_customs.module
Custom activity status update VBO .module file
function civicrm_customs_action_info() {
return array(
'civicrm_customs_update_activity_status_action' => array(
'type' => 'civicrm_activity',
'label' => t('Update Activity Status'),
'behavior' => array('views_property'),
'configurable' => FALSE,
'vbo_configurable' => TRUE,
'triggers' => array('any'),
'pass rows' => TRUE,
@UshaMakoa
UshaMakoa / drupal8.md
Last active May 7, 2022 08:29 — forked from flocondetoile/drupal8.md
drupal d8
function MYMODULE_template_preprocess_default_variables_alter(&$variables) {
$current_path = \Drupal::service('path.current')->getPath();
$variables['current_path'] = $current_path;
}