You are here

function jalalidate_nodes_install in PersianTools 7

Implements hook_install().

File

jalalidate_nodes/jalalidate_nodes.install, line 11
Contains install and uninstall functions for jalalidate.

Code

function jalalidate_nodes_install() {
  variable_set('jalalidate_nodes_format', 'medium');
  jalalidate_verify_requirements();
  if (class_exists('IntlDateFormatter')) {
    variable_set('jalalidate_nodes_custom', 'EEEE Y/M/d - H:m');
  }
  else {
    variable_set('jalalidate_nodes_custom', 'l Y/n/j - G:i');
  }
}