added faq
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
739f52c1df
commit
09ac2a24ac
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* frequently_asked_questions.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function frequently_asked_questions_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* frequently_asked_questions.features.taxonomy.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_default_vocabularies().
|
||||
*/
|
||||
function frequently_asked_questions_taxonomy_default_vocabularies() {
|
||||
return array(
|
||||
'faq_categories' => array(
|
||||
'name' => 'faq categories',
|
||||
'machine_name' => 'faq_categories',
|
||||
'description' => '',
|
||||
'hierarchy' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'weight' => '0',
|
||||
'language' => 'und',
|
||||
'i18n_mode' => '1',
|
||||
),
|
||||
);
|
||||
}
|
40
frequently_asked_questions/frequently_asked_questions.info
Normal file
40
frequently_asked_questions/frequently_asked_questions.info
Normal file
@ -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
|
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the frequently asked questions feature.
|
||||
*/
|
||||
|
||||
include_once 'frequently_asked_questions.features.inc';
|
@ -0,0 +1,272 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* frequently_asked_questions.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function frequently_asked_questions_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$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_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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user