merged features sudmodule
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* frequently_asked_questions.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function frequently_asked_questions_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
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,
|
||||
),
|
||||
);
|
||||
}
|
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* frequently_asked_questions.features.user_permission.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_permissions().
|
||||
*/
|
||||
function frequently_asked_questions_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// Exported permission: 'administer faq'.
|
||||
$permissions['administer faq'] = array(
|
||||
'name' => 'administer faq',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'faq',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer faq order'.
|
||||
$permissions['administer faq order'] = array(
|
||||
'name' => 'administer faq order',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'faq',
|
||||
);
|
||||
|
||||
// Exported permission: 'create faq content'.
|
||||
$permissions['create faq content'] = array(
|
||||
'name' => 'create faq content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete any faq content'.
|
||||
$permissions['delete any faq content'] = array(
|
||||
'name' => 'delete any faq content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete own faq content'.
|
||||
$permissions['delete own faq content'] = array(
|
||||
'name' => 'delete own faq content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit any faq content'.
|
||||
$permissions['edit any faq content'] = array(
|
||||
'name' => 'edit any faq content',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit own faq content'.
|
||||
$permissions['edit own faq content'] = array(
|
||||
'name' => 'edit own faq content',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'enter faq revision log entry'.
|
||||
$permissions['enter faq revision log entry'] = array(
|
||||
'name' => 'enter faq revision log entry',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq authored by option'.
|
||||
$permissions['override faq authored by option'] = array(
|
||||
'name' => 'override faq authored by option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq authored on option'.
|
||||
$permissions['override faq authored on option'] = array(
|
||||
'name' => 'override faq authored on option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq promote to front page option'.
|
||||
$permissions['override faq promote to front page option'] = array(
|
||||
'name' => 'override faq promote to front page option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq published option'.
|
||||
$permissions['override faq published option'] = array(
|
||||
'name' => 'override faq published option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq revision option'.
|
||||
$permissions['override faq revision option'] = array(
|
||||
'name' => 'override faq revision option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq sticky option'.
|
||||
$permissions['override faq sticky option'] = array(
|
||||
'name' => 'override faq sticky option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'view faq page'.
|
||||
$permissions['view faq page'] = array(
|
||||
'name' => 'view faq page',
|
||||
'roles' => array(
|
||||
'authenticated user' => 'authenticated user',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'faq',
|
||||
);
|
||||
|
||||
return $permissions;
|
||||
}
|
@@ -0,0 +1,57 @@
|
||||
name = frequently asked questions
|
||||
core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = faq
|
||||
dependencies[] = features
|
||||
dependencies[] = node
|
||||
dependencies[] = override_node_options
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[taxonomy][] = faq_categories
|
||||
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][] = enter faq revision log entry
|
||||
features[user_permission][] = override faq authored by option
|
||||
features[user_permission][] = override faq authored on option
|
||||
features[user_permission][] = override faq promote to front page option
|
||||
features[user_permission][] = override faq published option
|
||||
features[user_permission][] = override faq revision option
|
||||
features[user_permission][] = override faq sticky option
|
||||
features[user_permission][] = view faq page
|
||||
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
|
||||
project path = sites/all/modules/features
|
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the frequently asked questions feature.
|
||||
*/
|
||||
|
||||
include_once 'frequently_asked_questions.features.inc';
|
@@ -0,0 +1,270 @@
|
||||
<?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 = 'none';
|
||||
$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 = 0;
|
||||
$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 = 0;
|
||||
$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 = 1;
|
||||
$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 = 1;
|
||||
$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' => '1',
|
||||
'has_required' => TRUE,
|
||||
'title' => 'Question',
|
||||
),
|
||||
'additional_settings' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '5',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Vertical tabs',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'actions' => array(
|
||||
'region' => 'right',
|
||||
'weight' => '3',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Save',
|
||||
'hidden' => 0,
|
||||
),
|
||||
'language' => array(
|
||||
'region' => 'right',
|
||||
'weight' => '1',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Language',
|
||||
'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',
|
||||
),
|
||||
'title_field' => array(
|
||||
'region' => 'main',
|
||||
'weight' => '0',
|
||||
'has_required' => TRUE,
|
||||
'title' => 'Title',
|
||||
),
|
||||
'workflow' => array(
|
||||
'region' => 'right',
|
||||
'weight' => '2',
|
||||
'has_required' => FALSE,
|
||||
'title' => 'Importé',
|
||||
'hidden' => 0,
|
||||
),
|
||||
);
|
||||
$export['nodeformscols_field_placements_faq_default'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
Reference in New Issue
Block a user