summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202023-08-31 16:39:55 +0530
committerGitHub2023-08-31 16:39:55 +0530
commit11e934665f2ff1b2b176e124cc7e166d212add01 (patch)
tree29e5224e5c0471053d679677d5587636a8e59a72
parentd9a153f52948f1c13c5be22dd160b8e96f1e1a58 (diff)
parenta84f1b7ee591b93dd32095197241c39911435ae4 (diff)
downloadsoul_science_and_concept_map_project-11e934665f2ff1b2b176e124cc7e166d212add01.tar.gz
soul_science_and_concept_map_project-11e934665f2ff1b2b176e124cc7e166d212add01.tar.bz2
soul_science_and_concept_map_project-11e934665f2ff1b2b176e124cc7e166d212add01.zip
Merge pull request #13 from akshay9085/ncert-books
Update dropdown displaying class names in proposal
-rwxr-xr-xproposal.inc2
-rwxr-xr-xscience_and_concept_map.module4
2 files changed, 2 insertions, 4 deletions
diff --git a/proposal.inc b/proposal.inc
index 53813d6..c11a630 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -404,7 +404,7 @@ function science_and_concept_map_proposal_form($form, &$form_state, $no_js_use =
'#title' => t('The project is suitable for class (school education)/year of study(college education) '),
// '#options' => '_tbc_list_of_main_categories()',
'#options' =>_df_list_of_classes(),
- '#default_value' => '-select-',
+ //'#default_value' => '-select-',
'#tree' => TRUE,
'#required' => TRUE
);
diff --git a/science_and_concept_map.module b/science_and_concept_map.module
index 0949bd2..4670a07 100755
--- a/science_and_concept_map.module
+++ b/science_and_concept_map.module
@@ -736,9 +736,7 @@ function _df_list_of_states()
}
function _df_list_of_classes()
{
- $class_name = array(
- 0 => '-Select-'
- );
+ $class_name = array();
$query = db_select('class_table');
$query->fields('class_table');
$query->orderBy('id', 'ASC');