Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* @file
* This module controls the access to view profile nodes and its email address
* field.
*/
function mh_profile_access_form_alter(&$form, &$form_state, $form_id) {
if($form['form_id']['#value'] == 'profile_node_form') {
dpm($form);
<?php
/**
* @file
* This module controls the access to view profile nodes and its email address
* field.
*/
function mh_profile_access_form_profile_node_form_alter(&$form, &$form_state, $form_id) {
$form['field_profile_e_mail']['und'][0]['email']['#description'] = t('new desc.');
$form['field_profile_e_mail']['und'][0]['email']['#disabled'] = TRUE;
$query = new EntityFieldQuery();
$query->entityCondition('entity_type', 'taxonomy_term')
->entityCondition('bundle', 'property_country_city')
->fieldCondition('name_field', 'value', $city, '=')
->range(0, 1)
->addTag('term_is_child_of')
->addMetaData('parent_term_id', $country_id)
->addMetaData('account', user_load(1)); // Run the query as user 1.
$result = $query->execute();
$city = 'Rome';
// Get term id of city. taxonomy_get_term_by_name don't work because it
// don't works with multilingual values.
$query = new EntityFieldQuery();
$query->entityCondition('entity_type', 'taxonomy_term')
->entityCondition('bundle', 'property_country_city')
->fieldCondition('name_field', 'value', $city, '=')
->addTag('term_is_child_of')
->addMetaData('parent_term_id', $country_id)
/**
* Implements hook_views_query_alter().
*/
function mh_search_wish_views_query_alter(&$view, &$query) {
if ($view->name == 'matching_search_clients') {
$join = new views_join();
$join->table = 'search_wish_hit_status';
$join->field = 'profile_nid';
$join->left_table = 'node';
$join->left_field = 'nid';
smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noplaintext noanonymous
smtp_connection_cache_on_demand = no
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent
sender_canonical_maps = hash:/etc/postfix/sender_canonical
<?php
$node = node_load(102570);
$node_view = node_view($node, 'teaser');
$node_rendered = drupal_render($node_view);
2026-08-14T04:10:22Z W! Strict environment variable handling is the new default starting with v1.38.0! If your configuration does not work with strict handling please explicitly add the --non-strict-env-handling flag to switch to the previous behavior!
2026-08-14T04:10:22Z I! Loading config: /etc/telegraf/telegraf.conf
2026-08-14T04:10:22Z I! Loading config: /etc/telegraf/telegraf.d/stats4lox_internal.conf
2026-08-14T04:10:22Z I! Loading config: /etc/telegraf/telegraf.d/stats4lox_loxberry.conf
2026-08-14T04:10:22Z I! Loading config: /etc/telegraf/telegraf.d/stats4lox_loxone.conf
2026-08-14T04:10:22Z I! Loading config: /etc/telegraf/telegraf.d/stats4lox_miniserver.conf
2026-08-14T04:10:22Z I! Loading config: /etc/telegraf/telegraf.d/stats4lox_socketlistener_unix.conf
2026-08-14T04:10:22Z E! [telegraf] Error running agent: setting up logging failed: open /opt/loxberry/log/plugins/stats4lox/telegraf.log: permission denied
2026-08-14T04:10:22Z W! Strict environment variable handling is the new default starting wi