Advertising sustains the DA. Ads are hidden for members. Join today

Computed Field

Add Hebrew Date using a custom field

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

Following instructions are the product of a forum discussion taken in Drupal Israel site: http://www.drupal.org.il/node/3749 and are based on Mooffie's code with help from Yuval Hagger.

1. In Computed code paste the code that you find here:
http://drupa.co.il/_files/forexternsites/drupal.org-node-622098.txt

2. In Display format paste this:

<?php
$display = $node_field_item['value'];
?>

3. If you choose to store it in the database, varchar with 25 characters will be fine.

Note: For English names and calculation of the Jewish data look inside the code for "ELUL".

Help improve this page

Page status: Not set

You can: