From c408a4e6ab1b690d3bfd3d4032af230efa054991 Mon Sep 17 00:00:00 2001 From: diptighosalkar Date: Tue, 30 Jun 2015 16:30:17 +0530 Subject: removed fly database and added branch select box --- fossee_stats.module | 79 +++++++++++++++++++++++++++++------------------------ 1 file changed, 43 insertions(+), 36 deletions(-) diff --git a/fossee_stats.module b/fossee_stats.module index 1c7bd23..a18c013 100755 --- a/fossee_stats.module +++ b/fossee_stats.module @@ -10,11 +10,7 @@ "title" => t("Manage fossee_stats"), "description" => t("Allows users to manage job postings.") ), - /* "manage download_application" => array( - "title" => t("Manage Download Portal"), - "description" => t("Allows users to download job applications.") - ),*/ -); + ); } function fossee_stats_menu() { @@ -60,11 +56,7 @@ // dropdown when rebuilt. '#ajax' => array( - // When 'event' occurs, Drupal will perform an ajax request in the - // background. Usually the default value is sufficient (eg. change for - // select elements), but valid values include any jQuery event, - // most notably 'mousedown', 'blur', and 'submit'. - // 'event' => 'change', + /* When 'event' occurs, Drupal will perform an ajax request in the background. Usually the default value is sufficient (eg. change for select elements), but valid values include any jQuery event, most notably 'mousedown', 'blur', and 'submit'. 'event' => 'change',*/ 'callback' =>'ajax_example_dependent_dropdown_callback', 'wrapper' => 'dropdown-second-replace', ), @@ -127,7 +119,7 @@ $form['foss_select_branch'] = array( '#type' => 'select', '#title' => t('Branch'), - '#options' => _ajax_get_branch_options($foss_project), + '#options' => _ajax_get_branch_options($foss_project,$foss_sub_project), // The entire enclosing div created here gets replaced when foss_type // is changed. '#prefix' => '