contrib modules security updates

This commit is contained in:
Bachir Soussi Chiadmi
2016-10-13 12:10:40 +02:00
parent ffd758abc9
commit 747127f643
732 changed files with 67976 additions and 23207 deletions

View File

@@ -9,9 +9,21 @@
* Implements hook_rules_event_info().
*/
function feeds_rules_event_info() {
$info = array();
// General events definitions.
$info = array(
'feeds_before_import' => array(
'label' => t('Before importing feed'),
'group' => t('Feeds'),
'variables' => array('source' => array('type' => 'feeds_source', 'label' => 'Feeds source')),
),
'feeds_after_import' => array(
'label' => t('After importing feed'),
'group' => t('Feeds'),
'variables' => array('source' => array('type' => 'feeds_source', 'label' => 'Feeds source')),
),
);
// Per importer events definitions.
$entity_info = entity_get_info();
foreach (feeds_importer_load_all() as $importer) {
$config = $importer->getConfig();
$processor = feeds_plugin($config['processor']['plugin_key'], $importer->id);
@@ -40,8 +52,7 @@ function feeds_rules_event_info() {
);
// Add bundle information if the node processor is used.
if ($processor instanceof FeedsNodeProcessor) {
$config = $processor->getConfig();
$info['feeds_import_'. $importer->id]['variables'][$entity_type]['bundle'] = $config['content_type'];
$info['feeds_import_'. $importer->id]['variables'][$entity_type]['bundle'] = $processor->bundle();
}
}
return $info;
@@ -64,6 +75,32 @@ function feeds_rules_action_info() {
);
}
/**
* Implements hook_rules_data_info().
*/
function feeds_rules_data_info() {
return array(
'feeds_source' => array(
'label' => t('Feeds source'),
'group' => t('Feeds'),
'wrap' => TRUE,
'property info' => array(
'id' => array(
'label' => t('ID'),
'type' => 'text',
'description' => t("The machine readable name of the source importer."),
),
'imported' => array(
'label' => t('Date imported'),
'type' => 'date',
'description' => t("The date the source was last imported."),
),
// @TODO: fetcher, parser, state ...
),
),
);
}
/**
* Mark feeds import item as skipped.
*/