This is a smart module that basically extends Drupal's display date to provide Hijri Date integration with Drupal core date field and with other Drupal contributions.
This module is integrated very well with Views module. You can use it to display Hijri date instead of Gregorian date or you can have them both by mention "الموافق".
Also this module comes with Hijri block that will be showing Hijri today date on your website wherever you want to show your Hijri Block of today's date in your header for example.
One of the Hijri date issues, sometime the day by the algorithm does not match the same day in the current period because of the moon cycle, so we resolve this issue by adding custom Hijri increment field so you can increment or decrement the Hijri date to meet the real day.
You can reach Hijri settings by going to this path: Administration » Configuration » Regional and language » Hijri Settings.
Also you can change the Hijri format by editing the Drupal date format for (long, medium and short) types in this path: Administration » Configuration » Regional and language » Date and time » Types or add your own type.
Similar Projects
- Hijri Format: A simple module that converts dates to Hijri format, The module adds a display format for created and changed fields for Nodes and Comments entities, and Date fields for all entity types
- Calendar Systems: Adds support for alternative calendar systems like Jalali, Iranian, Thai, Hijri, Hebrew, etc to Drupal in an integrated and extensible way and makes it possible to select different calendar system site-wide, per language, per field, per field formater. It also fully supports Views, Date, Webform, locale, i18n (for month,day,week names translation) modules and is integrated with JQuery Calendar module for adding popup date selector. For developers it has multi calendar date API plus a new #calendar_system element for Drupal Form API and several hooks for adding new calendar systems.
- Taarikh: is a field formatter and widget module to display and input hijri dates using the fields defined by the date module. The formatter can work with all the fields defined by the date module, i.e., Date, Date (ISO format) and Date (Unix timestamp). The widget, however, does not work with Date (Unix timestamp)..
من واقع حاجة المطور والمجتمع العربي للتاريخ الاسلامي الهجري لاستخدامه في عرض المقالات والاخبار قمنا بعمل هذا الموديل ليلبي هذه الحاجة ونرحب بجميع الافكار والمشاركات ليتم عملها في النسخ القادمة.
مميزات الموديل:
١- التحكم بعرض اضافة المحتوى بالتاريخ الهجري بجميع اشكاله المدمجة مع تنسيقات التاريخ الموجودة في دروبال وايضاً عرض التاريخ الهجري ومايوافقه بالميلادي
مثال : اضيفت بواسطة فلان بتاريخ الاثنين ١ محرم ١٤٣٦
٢- التحكم بعرض تاريخ التعليقات وعرضها بالتاريخ الهجري او الميلادي او معاً.
٣- تم عمل تكامل مع موديل فيوز واعطاء امكانية اختيار التاريخ الهجري ونوعه عند اختيار اضافة حقل اضافة او تعديل المحتوى.
٣- في صفحة البلوكات سوف تجد بلوك تاريخ اليوم وايضاً توجد في لوحة التحكم خيارات عرض تاريخ اليوم مثل التاريخ كامل او مختصر او عرض التاريخ الميلادي والهجري في نفس البلوك.
٤- تفعيل الهجري لعدد محدد من انواع المحتوى عن طريق لوحة التحكم الخاصة بالموديل.
For Developer Drupal 7:
to change any date to Hijri you can use this function:
hijri_format_date($timestamp, $type = 'medium', $format = '', $correction = 0);
For Developer Drupal 8|9:
to change any date to Hijri you can use this service:
$hijri_formatter = \Drupal::service('hijri.formatter');
$hijri_formatter->format($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL)
Road-map:
- [ ] Adding the support for Date field.
- [ ] Adding a new library for ummulqura.
- [ ] Supporting features.
Project information
- Project categories: Content display, Site structure, Developer tools
86 sites report using this module
- Created by drpl on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



