added metatag feature
This commit is contained in:
parent
2ca9694d84
commit
9c97849d78
14
sites/all/modules/features/metatags/metatags.features.inc
Normal file
14
sites/all/modules/features/metatags/metatags.features.inc
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* metatags.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function metatags_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* metatags.features.user_permission.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_permissions().
|
||||
*/
|
||||
function metatags_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// Exported permission: 'administer meta tags'.
|
||||
$permissions['administer meta tags'] = array(
|
||||
'name' => 'administer meta tags',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'metatag',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit meta tags'.
|
||||
$permissions['edit meta tags'] = array(
|
||||
'name' => 'edit meta tags',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'metatag',
|
||||
);
|
||||
|
||||
return $permissions;
|
||||
}
|
19
sites/all/modules/features/metatags/metatags.info
Normal file
19
sites/all/modules/features/metatags/metatags.info
Normal file
@ -0,0 +1,19 @@
|
||||
name = metatags
|
||||
core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = metatag
|
||||
dependencies[] = metatag_dc
|
||||
dependencies[] = metatag_facebook
|
||||
dependencies[] = metatag_google_plus
|
||||
dependencies[] = metatag_opengraph
|
||||
dependencies[] = metatag_twitter_cards
|
||||
dependencies[] = strongarm
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[user_permission][] = administer meta tags
|
||||
features[user_permission][] = edit meta tags
|
||||
features[variable][] = metatag_has_revision_id
|
||||
features[variable][] = metatag_schema_installed
|
||||
project path = sites/all/modules/features
|
7
sites/all/modules/features/metatags/metatags.module
Normal file
7
sites/all/modules/features/metatags/metatags.module
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the metatags feature.
|
||||
*/
|
||||
|
||||
include_once 'metatags.features.inc';
|
28
sites/all/modules/features/metatags/metatags.strongarm.inc
Normal file
28
sites/all/modules/features/metatags/metatags.strongarm.inc
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* metatags.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function metatags_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 = 'metatag_has_revision_id';
|
||||
$strongarm->value = TRUE;
|
||||
$export['metatag_has_revision_id'] = $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_schema_installed';
|
||||
$strongarm->value = TRUE;
|
||||
$export['metatag_schema_installed'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user