You are here

jalalidate_viewsformatter.install in PersianTools 7

Contains install and uninstall functions for Jalalidate Views formatter.

File

jalalidate_viewsformatter/jalalidate_viewsformatter.install
View source
<?php

/**
 * @file
 * Contains install and uninstall functions for Jalalidate Views formatter.
 */

/**
 * Implements hook_install().
 */
function jalalidate_viewsformatter_install() {
  variable_set('jalalidate_format', 'l Y/n/j - G:i');
  variable_set('jalalidate_custom', 'l Y/n/j - G:i');
  variable_set('jalalidate_satisfied', 0);
}

/**
 * Implements hook_uninstall().
 */
function jalalidate_viewsformatter_uninstall() {
  variable_del('jalalidate_format');
  variable_del('jalalidate_custom');
  variable_del('jalalidate_satisfied');
}