Révision ed9a13f1
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/feeds/plugins/FeedsTermProcessor.inc | ||
---|---|---|
9 | 9 |
* Feeds processor plugin. Create taxonomy terms from feed items. |
10 | 10 |
*/ |
11 | 11 |
class FeedsTermProcessor extends FeedsProcessor { |
12 |
|
|
12 | 13 |
/** |
13 | 14 |
* Define entity type. |
14 | 15 |
*/ |
... | ... | |
56 | 57 |
/** |
57 | 58 |
* Validates a term. |
58 | 59 |
*/ |
59 |
protected function entityValidate($term) { |
|
60 |
protected function entityValidate($term, FeedsSource $source = NULL) {
|
|
60 | 61 |
parent::entityValidate($term); |
61 | 62 |
|
62 | 63 |
if (drupal_strlen($term->name) == 0) { |
... | ... | |
129 | 130 |
break; |
130 | 131 |
|
131 | 132 |
case 'parentguid': |
132 |
// value is parent_guid field value
|
|
133 |
// Value is parent_guid field value.
|
|
133 | 134 |
$parent_tid = 0; |
134 | 135 |
$query = db_select('feeds_item') |
135 | 136 |
->fields('feeds_item', array('entity_id')) |
Formats disponibles : Unified diff
Weekly update of contrib modules