groups/modules/commons/commons_activity_streams/commons_activity_streams.features.inc
Marton Kiss c2acc71500 Upgrade Drupal Commons to 7.x-3.23
Apply the security fixes including:
- Drupal Core - Moderately Critical - Multiple Vulnerabilities - SA-CORE-2015-001
- SA-CONTRIB-2015-079 - Chaos tool suite (ctools) - Multiple vulnerabilities

The following patches were applied to 7.x-3.23 commons modules:
- patches/0001-utility-links-block-install-theme.patch
- patches/0002-events-page-refactor-to-pages-module.patch

Installation profile got a refactor of module installation, as groups_ modules
and l10n_updates deployed from an installation task to avoid memory
exhausted errors of the installation process.

Change-Id: I48481657124fdbbee84e1cbfec3a3a2b5f475c2c
2015-03-24 16:38:09 +01:00

109 lines
4.3 KiB
PHP

<?php
/**
* @file
* commons_activity_streams.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function commons_activity_streams_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function commons_activity_streams_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_default_message_type().
*/
function commons_activity_streams_default_message_type() {
$items = array();
$items['commons_activity_streams_comment_created'] = entity_import('message_type', '{
"name" : "commons_activity_streams_comment_created",
"description" : "commons_activity_streams_comment_created",
"argument_keys" : [],
"argument" : [],
"category" : "message_type",
"data" : {
"token options" : { "clear" : 1 },
"purge" : { "override" : 0, "enabled" : 0, "quota" : "", "days" : "" }
},
"language" : "",
"arguments" : null,
"message_text" : { "und" : [
{ "value" : "[message:user:picture:35x35]", "format" : "filtered_html" },
{
"value" : "\\u003Ca href=\\u0022[message:user:url:absolute]\\u0022\\u003E[message:user:name]\\u003C\\/a\\u003E commented on \\u003Ca href=\\u0022[message:field-target-nodes:0:url]\\u0022\\u003E[message:field-target-nodes:0:title_field]\\u003C\\/a\\u003E",
"format" : "full_html",
"safe_value" : "\\u003Ca href=\\u0022[message:user:url:absolute]\\u0022\\u003E[message:user:name]\\u003C\\/a\\u003E commented on \\u003Ca href=\\u0022[message:field-target-nodes:0:url]\\u0022\\u003E[message:field-target-nodes:0:title_field]\\u003C\\/a\\u003E"
},
{
"value" : "[commons-groups:in-groups-text]",
"format" : "full_html",
"safe_value" : "[commons-groups:in-groups-text]"
}
]
},
"rdf_mapping" : []
}');
$items['commons_activity_streams_node_created'] = entity_import('message_type', '{
"name" : "commons_activity_streams_node_created",
"description" : "commons_activity_streams_node_created",
"argument_keys" : [],
"argument" : [],
"category" : "message_type",
"data" : {
"token options" : { "clear" : 1 },
"purge" : { "override" : 0, "enabled" : 0, "quota" : "", "days" : "" }
},
"language" : "",
"arguments" : null,
"message_text" : { "und" : [
{ "value" : "[message:user:picture:35x35]", "format" : "filtered_html" },
{
"value" : "\\u003Ca href=\\u0022[message:user:url:absolute]\\u0022\\u003E[message:user:name]\\u003C\\/a\\u003E created \\u003Ca href=\\u0022[message:field-target-nodes:0:url]\\u0022\\u003E[message:field-target-nodes:0:title_field]\\u003C\\/a\\u003E",
"format" : "full_html",
"safe_value" : "\\u003Ca href=\\u0022[message:user:url:absolute]\\u0022\\u003E[message:user:name]\\u003C\\/a\\u003E created \\u003Ca href=\\u0022[message:field-target-nodes:0:url]\\u0022\\u003E[message:field-target-nodes:0:title_field]\\u003C\\/a\\u003E"
},
{
"value" : "[commons-groups:in-groups-text]",
"format" : "full_html",
"safe_value" : "[commons-groups:in-groups-text]"
}
]
},
"rdf_mapping" : []
}');
$items['commons_activity_streams_user_profile_updated'] = entity_import('message_type', '{
"name" : "commons_activity_streams_user_profile_updated",
"description" : "commons_activity_streams_user_profile_updated",
"argument_keys" : [],
"argument" : [],
"category" : "message_type",
"data" : {
"token options" : { "clear" : 1 },
"purge" : { "override" : 0, "enabled" : 0, "quota" : "", "days" : "" }
},
"language" : "",
"arguments" : null,
"message_text" : { "und" : [
{ "value" : "[message:user:picture:35x35]", "format" : "filtered_html" },
{
"value" : "\\u003Ca href=\\u0022[message:user:url:absolute]\\u0022\\u003E[message:user:name]\\u003C\\/a\\u003E has an updated profile",
"format" : "full_html",
"safe_value" : "\\u003Ca href=\\u0022[message:user:url:absolute]\\u0022\\u003E[message:user:name]\\u003C\\/a\\u003E has an updated profile"
}
]
},
"rdf_mapping" : []
}');
return $items;
}