From 09ac2a24ac9758de7e54416d109821c7420296a7 Mon Sep 17 00:00:00 2001 From: bachy Date: Fri, 29 Mar 2013 18:36:32 +0100 Subject: [PATCH] added faq Signed-off-by: bachy --- .../frequently_asked_questions.features.inc | 15 + ...ntly_asked_questions.features.taxonomy.inc | 23 ++ .../frequently_asked_questions.info | 40 +++ .../frequently_asked_questions.module | 7 + .../frequently_asked_questions.strongarm.inc | 272 ++++++++++++++++++ 5 files changed, 357 insertions(+) create mode 100644 frequently_asked_questions/frequently_asked_questions.features.inc create mode 100644 frequently_asked_questions/frequently_asked_questions.features.taxonomy.inc create mode 100644 frequently_asked_questions/frequently_asked_questions.info create mode 100644 frequently_asked_questions/frequently_asked_questions.module create mode 100644 frequently_asked_questions/frequently_asked_questions.strongarm.inc diff --git a/frequently_asked_questions/frequently_asked_questions.features.inc b/frequently_asked_questions/frequently_asked_questions.features.inc new file mode 100644 index 00000000..918bc30a --- /dev/null +++ b/frequently_asked_questions/frequently_asked_questions.features.inc @@ -0,0 +1,15 @@ + "1"); + } +} diff --git a/frequently_asked_questions/frequently_asked_questions.features.taxonomy.inc b/frequently_asked_questions/frequently_asked_questions.features.taxonomy.inc new file mode 100644 index 00000000..1f4a0959 --- /dev/null +++ b/frequently_asked_questions/frequently_asked_questions.features.taxonomy.inc @@ -0,0 +1,23 @@ + array( + 'name' => 'faq categories', + 'machine_name' => 'faq_categories', + 'description' => '', + 'hierarchy' => '0', + 'module' => 'taxonomy', + 'weight' => '0', + 'language' => 'und', + 'i18n_mode' => '1', + ), + ); +} diff --git a/frequently_asked_questions/frequently_asked_questions.info b/frequently_asked_questions/frequently_asked_questions.info new file mode 100644 index 00000000..24652672 --- /dev/null +++ b/frequently_asked_questions/frequently_asked_questions.info @@ -0,0 +1,40 @@ +name = frequently asked questions +core = 7.x +package = Materio +php = 5.2.4 +dependencies[] = ctools +dependencies[] = faq +dependencies[] = features +dependencies[] = strongarm +dependencies[] = taxonomy +features[ctools][] = strongarm:strongarm:1 +features[features_api][] = api:1 +features[taxonomy][] = faq_categories +features[variable][] = faq_answer_category_name +features[variable][] = faq_answer_label +features[variable][] = faq_back_to_top +features[variable][] = faq_category_display +features[variable][] = faq_category_hide_qa_accordion +features[variable][] = faq_category_listing +features[variable][] = faq_count +features[variable][] = faq_custom_breadcrumbs +features[variable][] = faq_default_sorting +features[variable][] = faq_description +features[variable][] = faq_disable_node_links +features[variable][] = faq_display +features[variable][] = faq_group_questions_top +features[variable][] = faq_hide_child_terms +features[variable][] = faq_hide_qa_accordion +features[variable][] = faq_omit_vocabulary +features[variable][] = faq_qa_mark +features[variable][] = faq_question_label +features[variable][] = faq_question_length +features[variable][] = faq_question_listing +features[variable][] = faq_question_long_form +features[variable][] = faq_show_expand_all +features[variable][] = faq_show_node_links +features[variable][] = faq_show_term_page_children +features[variable][] = faq_title +features[variable][] = faq_use_categories +features[variable][] = faq_use_teaser +features[variable][] = nodeformscols_field_placements_faq_default diff --git a/frequently_asked_questions/frequently_asked_questions.module b/frequently_asked_questions/frequently_asked_questions.module new file mode 100644 index 00000000..18be7080 --- /dev/null +++ b/frequently_asked_questions/frequently_asked_questions.module @@ -0,0 +1,7 @@ +disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_answer_category_name'; + $strongarm->value = 0; + $export['faq_answer_category_name'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_answer_label'; + $strongarm->value = 'A:'; + $export['faq_answer_label'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_back_to_top'; + $strongarm->value = 'Back to Top'; + $export['faq_back_to_top'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_category_display'; + $strongarm->value = 'categories_inline'; + $export['faq_category_display'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_category_hide_qa_accordion'; + $strongarm->value = 1; + $export['faq_category_hide_qa_accordion'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_category_listing'; + $strongarm->value = 'ul'; + $export['faq_category_listing'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_count'; + $strongarm->value = 0; + $export['faq_count'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_custom_breadcrumbs'; + $strongarm->value = 1; + $export['faq_custom_breadcrumbs'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_default_sorting'; + $strongarm->value = 'DESC'; + $export['faq_default_sorting'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_description'; + $strongarm->value = 'We hope that you\'ll find the appropriate answer to your question here !'; + $export['faq_description'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_disable_node_links'; + $strongarm->value = 1; + $export['faq_disable_node_links'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_display'; + $strongarm->value = 'hide_answer'; + $export['faq_display'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_group_questions_top'; + $strongarm->value = 0; + $export['faq_group_questions_top'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_hide_child_terms'; + $strongarm->value = 0; + $export['faq_hide_child_terms'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_hide_qa_accordion'; + $strongarm->value = 1; + $export['faq_hide_qa_accordion'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_omit_vocabulary'; + $strongarm->value = array( + 15 => '15', + 4 => '4', + 14 => '14', + 16 => '16', + 17 => 0, + ); + $export['faq_omit_vocabulary'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_qa_mark'; + $strongarm->value = 0; + $export['faq_qa_mark'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_question_label'; + $strongarm->value = 'Q:'; + $export['faq_question_label'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_question_length'; + $strongarm->value = 'short'; + $export['faq_question_length'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_question_listing'; + $strongarm->value = 'ul'; + $export['faq_question_listing'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_question_long_form'; + $strongarm->value = 1; + $export['faq_question_long_form'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_show_expand_all'; + $strongarm->value = 1; + $export['faq_show_expand_all'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_show_node_links'; + $strongarm->value = 0; + $export['faq_show_node_links'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_show_term_page_children'; + $strongarm->value = 0; + $export['faq_show_term_page_children'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_title'; + $strongarm->value = 'Frequently Asked Questions'; + $export['faq_title'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_use_categories'; + $strongarm->value = 1; + $export['faq_use_categories'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'faq_use_teaser'; + $strongarm->value = 0; + $export['faq_use_teaser'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'nodeformscols_field_placements_faq_default'; + $strongarm->value = array( + 'title' => array( + 'region' => 'main', + 'weight' => '0', + 'has_required' => TRUE, + 'title' => 'Question', + ), + 'additional_settings' => array( + 'region' => 'main', + 'weight' => '4', + 'has_required' => FALSE, + 'title' => 'Vertical tabs', + 'hidden' => 0, + ), + 'actions' => array( + 'region' => 'right', + 'weight' => '3', + 'has_required' => FALSE, + 'title' => 'Enregistrer', + 'hidden' => 0, + ), + 'language' => array( + 'region' => 'right', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => 'Langue', + 'hidden' => 0, + ), + 'detailed_question' => array( + 'region' => 'main', + 'weight' => '2', + 'has_required' => FALSE, + 'title' => 'Question details', + 'hidden' => 0, + ), + 'body' => array( + 'region' => 'main', + 'weight' => '3', + 'has_required' => FALSE, + 'title' => 'Answer', + 'hidden' => 0, + ), + 'field_categories' => array( + 'region' => 'right', + 'weight' => '0', + 'has_required' => TRUE, + 'title' => 'Categories', + ), + 'workflow' => array( + 'region' => 'right', + 'weight' => '2', + 'has_required' => FALSE, + 'title' => 'Publication', + 'collapsed' => 0, + 'hidden' => 0, + ), + ); + $export['nodeformscols_field_placements_faq_default'] = $strongarm; + + return $export; +}