Révision d50a36e0
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/fivestar/fivestar.migrate.inc | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Base integration with the Migrate API class. |
... | ... | |
20 | 21 |
*/ |
21 | 22 |
class MigrateFivestarFieldHandler extends MigrateFieldHandler { |
22 | 23 |
|
24 |
/** |
|
25 |
* |
|
26 |
*/ |
|
23 | 27 |
public function __construct() { |
24 | 28 |
$this->registerTypes(array('fivestar')); |
25 | 29 |
} |
26 | 30 |
|
31 |
/** |
|
32 |
* |
|
33 |
*/ |
|
27 | 34 |
public function fields($type, $parent_field, $migration = NULL) { |
28 | 35 |
$fields = array( |
29 | 36 |
'target' => t('Ratings: The target of the rating.'), |
... | ... | |
31 | 38 |
return $fields; |
32 | 39 |
} |
33 | 40 |
|
41 |
/** |
|
42 |
* |
|
43 |
*/ |
|
34 | 44 |
public function prepare($entity, array $field_info, array $instance, array $values) { |
35 | 45 |
$arguments = array(); |
36 | 46 |
if (isset($values['arguments'])) { |
... | ... | |
46 | 56 |
|
47 | 57 |
return isset($return) ? $return : NULL; |
48 | 58 |
} |
59 |
|
|
49 | 60 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules