summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsivaji2012-12-30 14:35:49 (GMT)
committer sivaji2012-12-30 14:35:49 (GMT)
commit8063383a61c74df5b3f11dd6773285f22a0a1fe0 (patch)
tree2894859e7fdaf5d01749adf7df062ddb9b4a57a8
parentc2c61d98d64b7d24d43f07829697baaded145d0d (diff)
Remove hook_init().
-rw-r--r--quiz.info4
-rw-r--r--quiz.module9
2 files changed, 4 insertions, 9 deletions
diff --git a/quiz.info b/quiz.info
index ece6700..d6811b8 100644
--- a/quiz.info
+++ b/quiz.info
@@ -4,6 +4,9 @@ description = "Create interactive, multipage quizzes. This module must have at l
dependencies[] = taxonomy
core = 7.x
+; Always available CSS
+stylesheets[all][] = quiz.css
+
; This is (or should be) recommended, but not required.
;dependencies[] = jquery_countdown
@@ -19,6 +22,7 @@ files[] = includes/views/handlers/quiz_views_handler_field_number_questions.inc
files[] = includes/views/handlers/quiz_views_handler_field_question_status.inc
files[] = includes/views/handlers/quiz_views_handler_field_score_aggregate.inc
files[] = includes/views/handlers/quiz_views_handler_field_takes.inc
+files[] = includes/views/handlers/quiz_views_handler_field_node_link_take.inc
files[] = includes/views/handlers/quiz_views_handler_field_time.inc
files[] = includes/views/handlers/quiz_views_handler_field_user_quiz_state.inc
files[] = includes/views/handlers/quiz_views_handler_filter_question_status.inc
diff --git a/quiz.module b/quiz.module
index 37d0852..110b152 100644
--- a/quiz.module
+++ b/quiz.module
@@ -315,15 +315,6 @@ function quiz_element_info() {
return $types;
}
*/
-/**
- * Implements hook_init().
- *
- * Add quiz-specific styling.
- */
-function quiz_init() {
- // @todo Use form api #attached
- drupal_add_css(drupal_get_path('module', 'quiz') . '/quiz.css');
-}
/*
* Implementation of hook_cron().