summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202021-01-04 21:33:54 +0530
committerGitHub2021-01-04 21:33:54 +0530
commit18bd2f1ed8c3dd5ca03105012acbd831cd3cb289 (patch)
treef16fdc2d0f33ec9fc9eae6e92597506ed4742a7a
parent52661a16840ad8ebd0b7597e2e8df850d0bd7a06 (diff)
parent834232ecf2d672cfae294a40ac9ba5b94b970289 (diff)
downloadosdag_installer_response_form-18bd2f1ed8c3dd5ca03105012acbd831cd3cb289.tar.gz
osdag_installer_response_form-18bd2f1ed8c3dd5ca03105012acbd831cd3cb289.tar.bz2
osdag_installer_response_form-18bd2f1ed8c3dd5ca03105012acbd831cd3cb289.zip
Merge pull request #1 from Saketh1499/development
View responses
-rwxr-xr-xdownload_details.inc35
-rwxr-xr-x[-rw-r--r--]installer_response_form.module14
-rwxr-xr-x[-rw-r--r--]settings.inc0
-rwxr-xr-x[-rw-r--r--]upload_installer.inc0
4 files changed, 49 insertions, 0 deletions
diff --git a/download_details.inc b/download_details.inc
new file mode 100755
index 0000000..c130a1b
--- /dev/null
+++ b/download_details.inc
@@ -0,0 +1,35 @@
+<?php
+function view_responses_all()
+{
+ $output = "";
+ $query = db_select('installer_response');
+ $query->fields('installer_response');
+ $result = $query->execute();
+ while ($row = $result->fetchObject())
+ {
+ $preference_rows[] = array(
+ $row->id,
+ $row->name_title."."." ".$row->first_name." ".$row->last_name,
+ //$row->first_name,
+ //$row->last_name,
+ $row->institute,
+ $row->email_id,
+ $row->designation,
+ //$row->insatller_type
+ );
+ } //$row = $result->fetchObject()
+ $preference_header = array(
+ 'S.No',
+ 'Name',
+ 'Institute',
+ 'Email_ID',
+ 'Designation',
+ //'Insatller Type'
+ );
+ $output .= theme('table', array(
+ 'header' => $preference_header,
+ 'rows' => $preference_rows
+ ));
+
+ return $output;
+}
diff --git a/installer_response_form.module b/installer_response_form.module
index 49f3d39..671bb59 100644..100755
--- a/installer_response_form.module
+++ b/installer_response_form.module
@@ -66,6 +66,16 @@ function installer_response_form_menu()
'type' => MENU_NORMAL_ITEM,
'file' => 'settings.inc'
);
+
+ $items['view_respones'] = array(
+ 'title' => 'Installer Responses',
+ 'page callback' => 'view_responses_all',
+ 'access arguments' => array(
+ 'osdag view responses'
+ ),
+ 'file' => 'download_details.inc'
+ );
+
return $items;
}
@@ -83,6 +93,10 @@ function installer_response_form_permission(){
'title' => t('administer installer settings'),
'restrict access' => TRUE,
),
+ 'osdag view responses' => array(
+ 'title' => t('OSDAG view responses'),
+ 'restrict access' => TRUE,
+ )
);
}
diff --git a/settings.inc b/settings.inc
index 49bc843..49bc843 100644..100755
--- a/settings.inc
+++ b/settings.inc
diff --git a/upload_installer.inc b/upload_installer.inc
index da3fdcf..da3fdcf 100644..100755
--- a/upload_installer.inc
+++ b/upload_installer.inc