diff --git a/idea.info b/idea.info index 9e5d9192a..27c68d533 100644 --- a/idea.info +++ b/idea.info @@ -100,6 +100,7 @@ dependencies[] = ideal_idea dependencies[] = fe_challenge dependencies[] = fe_idea dependencies[] = fe_default +dependencies[] = fe_faq dependencies[] = fe_merge dependencies[] = fe_news dependencies[] = fe_default diff --git a/modules/features/fe_faq/faq-list.txt b/modules/features/fe_faq/faq-list.txt new file mode 100644 index 000000000..9bf4a4e45 --- /dev/null +++ b/modules/features/fe_faq/faq-list.txt @@ -0,0 +1,4 @@ +Q: What are Challenges? +A: Challenges are containers for ideas. They can be put as questions that need answers, or problems that seek solutions, or most straightforward - subjects for which ideas are given. +Use challenges to gather ideas around a certain theme. +You can run several challenges in parallel, although it is recommended not to run too many challenges in parallel, so as to keep the users focused on a small number of problems, thus contributing to the discussion's quality and richness. \ No newline at end of file diff --git a/modules/features/fe_faq/fe_faq.features.inc b/modules/features/fe_faq/fe_faq.features.inc new file mode 100644 index 000000000..3e956482e --- /dev/null +++ b/modules/features/fe_faq/fe_faq.features.inc @@ -0,0 +1,14 @@ + "1"); + } +} diff --git a/modules/features/fe_faq/fe_faq.features.menu_links.inc b/modules/features/fe_faq/fe_faq.features.menu_links.inc new file mode 100644 index 000000000..02f7984bd --- /dev/null +++ b/modules/features/fe_faq/fe_faq.features.menu_links.inc @@ -0,0 +1,39 @@ + 'main-menu', + 'link_path' => 'faq', + 'router_path' => 'faq', + 'link_title' => 'FAQ', + 'options' => array( + 'attributes' => array( + 'title' => 'Frequently Asked Questions', + ), + 'identifier' => 'main-menu_faq:faq', + ), + 'module' => 'menu', + 'hidden' => 0, + 'external' => 0, + 'has_children' => 0, + 'expanded' => 0, + 'weight' => -45, + 'customized' => 1, + ); + + // Translatables + // Included for use with string extractors like potx. + t('FAQ'); + + return $menu_links; +} diff --git a/modules/features/fe_faq/fe_faq.features.user_permission.inc b/modules/features/fe_faq/fe_faq.features.user_permission.inc new file mode 100644 index 000000000..83afd0689 --- /dev/null +++ b/modules/features/fe_faq/fe_faq.features.user_permission.inc @@ -0,0 +1,94 @@ + 'administer faq', + 'roles' => array( + 'administrator' => 'administrator', + ), + 'module' => 'faq', + ); + + // Exported permission: 'administer faq order'. + $permissions['administer faq order'] = array( + 'name' => 'administer faq order', + 'roles' => array( + 'administrator' => 'administrator', + 'site-manager' => 'site-manager', + ), + 'module' => 'faq', + ); + + // Exported permission: 'create faq content'. + $permissions['create faq content'] = array( + 'name' => 'create faq content', + 'roles' => array( + 'administrator' => 'administrator', + 'site-manager' => 'site-manager', + ), + 'module' => 'node', + ); + + // Exported permission: 'delete any faq content'. + $permissions['delete any faq content'] = array( + 'name' => 'delete any faq content', + 'roles' => array( + 'administrator' => 'administrator', + 'site-manager' => 'site-manager', + ), + 'module' => 'node', + ); + + // Exported permission: 'delete own faq content'. + $permissions['delete own faq content'] = array( + 'name' => 'delete own faq content', + 'roles' => array( + 'administrator' => 'administrator', + 'site-manager' => 'site-manager', + ), + 'module' => 'node', + ); + + // Exported permission: 'edit any faq content'. + $permissions['edit any faq content'] = array( + 'name' => 'edit any faq content', + 'roles' => array( + 'administrator' => 'administrator', + 'site-manager' => 'site-manager', + ), + 'module' => 'node', + ); + + // Exported permission: 'edit own faq content'. + $permissions['edit own faq content'] = array( + 'name' => 'edit own faq content', + 'roles' => array( + 'administrator' => 'administrator', + 'site-manager' => 'site-manager', + ), + 'module' => 'node', + ); + + // Exported permission: 'view faq page'. + $permissions['view faq page'] = array( + 'name' => 'view faq page', + 'roles' => array( + 'administrator' => 'administrator', + 'anonymous user' => 'anonymous user', + 'authenticated user' => 'authenticated user', + ), + 'module' => 'faq', + ); + + return $permissions; +} diff --git a/modules/features/fe_faq/fe_faq.info b/modules/features/fe_faq/fe_faq.info new file mode 100644 index 000000000..81ff1ddf1 --- /dev/null +++ b/modules/features/fe_faq/fe_faq.info @@ -0,0 +1,60 @@ +name = fe_faq +description = FAQ page for OpenideaL +core = 7.x +package = OpenideaL +dependencies[] = defaultcontent +dependencies[] = faq +dependencies[] = fe_idea +dependencies[] = features +dependencies[] = menu +dependencies[] = node +features[ctools][] = strongarm:strongarm:1 +features[features_api][] = api:2 +features[menu_links][] = main-menu_faq:faq +features[user_permission][] = administer faq +features[user_permission][] = administer faq order +features[user_permission][] = create faq content +features[user_permission][] = delete any faq content +features[user_permission][] = delete own faq content +features[user_permission][] = edit any faq content +features[user_permission][] = edit own faq content +features[user_permission][] = view faq page +features[variable][] = additional_settings__active_tab_faq +features[variable][] = comment_anonymous_faq +features[variable][] = comment_default_mode_faq +features[variable][] = comment_default_per_page_faq +features[variable][] = comment_faq +features[variable][] = comment_form_location_faq +features[variable][] = comment_preview_faq +features[variable][] = comment_subject_field_faq +features[variable][] = comments_fold_faq +features[variable][] = faq_answer_label +features[variable][] = faq_back_to_top +features[variable][] = faq_category_display +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_hide_qa_accordion +features[variable][] = faq_path +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_title +features[variable][] = faq_use_categories +features[variable][] = faq_use_teaser +features[variable][] = forward_display_faq +features[variable][] = menu_options_faq +features[variable][] = menu_parent_faq +features[variable][] = metatag_enable_node__faq +features[variable][] = node_options_faq +features[variable][] = node_preview_faq +features[variable][] = node_submitted_faq +features[variable][] = node_type_faq +features_exclude[dependencies][ctools] = ctools +features_exclude[dependencies][strongarm] = strongarm diff --git a/modules/features/fe_faq/fe_faq.module b/modules/features/fe_faq/fe_faq.module new file mode 100644 index 000000000..a45da1dbc --- /dev/null +++ b/modules/features/fe_faq/fe_faq.module @@ -0,0 +1,7 @@ +disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'additional_settings__active_tab_faq'; + $strongarm->value = 'edit-workflow'; + $export['additional_settings__active_tab_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comments_fold_faq'; + $strongarm->value = '10'; + $export['comments_fold_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_anonymous_faq'; + $strongarm->value = 0; + $export['comment_anonymous_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_default_mode_faq'; + $strongarm->value = 1; + $export['comment_default_mode_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_default_per_page_faq'; + $strongarm->value = '50'; + $export['comment_default_per_page_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_faq'; + $strongarm->value = '2'; + $export['comment_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_form_location_faq'; + $strongarm->value = 1; + $export['comment_form_location_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_preview_faq'; + $strongarm->value = '1'; + $export['comment_preview_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_subject_field_faq'; + $strongarm->value = 1; + $export['comment_subject_field_faq'] = $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_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 = ''; + $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 = 'questions_top'; + $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_hide_qa_accordion'; + $strongarm->value = 0; + $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_path'; + $strongarm->value = 'faq'; + $export['faq_path'] = $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 = 0; + $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_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 = FALSE; + $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 = 'forward_display_faq'; + $strongarm->value = 1; + $export['forward_display_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'menu_options_faq'; + $strongarm->value = array( + 0 => 'main-menu', + ); + $export['menu_options_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'menu_parent_faq'; + $strongarm->value = 'main-menu:0'; + $export['menu_parent_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'metatag_enable_node__faq'; + $strongarm->value = TRUE; + $export['metatag_enable_node__faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_options_faq'; + $strongarm->value = array( + 0 => 'status', + ); + $export['node_options_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_preview_faq'; + $strongarm->value = '1'; + $export['node_preview_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_submitted_faq'; + $strongarm->value = 1; + $export['node_submitted_faq'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_type_faq'; + $strongarm->value = array( + 0 => 'status', + ); + $export['node_type_faq'] = $strongarm; + + return $export; +}