Advertisement
DrupalCustom

sdgf

Jun 29th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1. function create_freeway_project_submit($form, &$form_state) {
  2.  
  3.   global $user;
  4.   $arrayForSendTranslation = array();
  5.   $arrayForSendTranslation = credentialProvider();
  6.  
  7.   $finalFunctionUserName = $arrayForSendTranslation[0];
  8.   $finalFunctionPassword = $arrayForSendTranslation[1];
  9.  
  10.  
  11.   $projDesc = ($form_state['values']['title']);
  12.   $custRef = ($form_state['values']['custRef']);
  13.   $poRef = ($form_state['values']['poRef']);
  14.   $strtDate = ($form_state['values']['strtdate']);
  15.   $endDate = ($form_state['values']['enddate']);
  16.   $splInst = ($form_state['values']['splinst']);
  17.   $startDateConv = date( 'Y-m-d', strtotime("now"));
  18.  
  19.  
  20.  
  21.    
  22.   if(strtotime($endDate) < strtotime($startDateConv)){
  23.  
  24.  $testPost = $_POST['poRef'];
  25.  
  26.  
  27.    drupal_get_messages();
  28.   drupal_set_message(" The Delivery date cannot be older than the Current Date!. You chose the date ".$endDate."This is ".$testPost,'error');
  29.   drupal_goto('user/' . $user->uid . '/createFreewayProject');
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement