summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202021-02-17 15:09:55 +0530
committerSashi202021-02-17 15:09:55 +0530
commita5d8b215dd754a3d8d2a8df97631bf9f546e9b97 (patch)
treee1dd4cb46fc644d50c5f57ceb93fe30003e03175
parentbf9b97afb1f95b10c5aed6453f5281b8856a6291 (diff)
downloadxcos_tbc_external_review-a5d8b215dd754a3d8d2a8df97631bf9f546e9b97.tar.gz
xcos_tbc_external_review-a5d8b215dd754a3d8d2a8df97631bf9f546e9b97.tar.bz2
xcos_tbc_external_review-a5d8b215dd754a3d8d2a8df97631bf9f546e9b97.zip
Mandate the fields in the comments submission form
-rwxr-xr-xxcos_tbc_external_review.module13
1 files changed, 12 insertions, 1 deletions
diff --git a/xcos_tbc_external_review.module b/xcos_tbc_external_review.module
index f661bf1..e6fa704 100755
--- a/xcos_tbc_external_review.module
+++ b/xcos_tbc_external_review.module
@@ -1131,6 +1131,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
);
$form["error"]["ncf"] = array(
"#type" => "radios",
@@ -1140,6 +1141,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["axl"] = array(
@@ -1150,6 +1152,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["acn"] = array(
@@ -1160,6 +1163,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
// '#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
@@ -1171,6 +1175,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
// '#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["auu"] = array(
@@ -1181,6 +1186,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["amt"] = array(
@@ -1191,6 +1197,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["dmx"] = array(
@@ -1201,6 +1208,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["dwe"] = array(
@@ -1211,6 +1219,7 @@ ini_set('display_startup_errors', TRUE);
t("No"),
t("NA")
),
+ '#required' => TRUE
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
/*$form["error"]["aci"] = array(
@@ -1241,11 +1250,13 @@ ini_set('display_startup_errors', TRUE);
t("Yes"),
t("No")
),
+ '#required' => TRUE
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["comment"] = array(
"#type" => "textarea",
"#title" => t("Other commment? (if any)"),
+
//'#states' => array('invisible' => array(':input[name="book"]' => array('value' => 0),),),
);
$form["error"]["submit"] = array(
@@ -2116,7 +2127,7 @@ ini_set('display_startup_errors', TRUE);
$result = $query->execute();
$row = $result->fetchObject();
$current_review = $row->review;
- $review_dir = $_SERVER['DOCUMENT_ROOT'] . base_path() . "reviews/{$row->preference_id}/";
+ $review_dir = $_SERVER['DOCUMENT_ROOT'] . base_path() . "xcos_reviews/{$row->preference_id}/";
if(!file_exists($review_dir)) {
mkdir($review_dir, 0755, TRUE);
}