You are here

function hijri_install in Hijri 8

Implements hook_install().

File

./hijri.install, line 11
install.module This module convert to Hijri date in nodes,comments and a block.

Code

function hijri_install() {

  // Set default values for config which require dynamic values.
  \Drupal::configFactory()
    ->getEditable('hijri.config')
    ->set('correction_value', 0)
    ->set('hijri_types', NULL)
    ->set('hijri_display', 'full')
    ->set('hijri_comment_display', 'full')
    ->set('hijri_display_block', 'full')
    ->save();
}