Révision 7fe061e8
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/sites/all/modules/ds/ds.ds_fields_info.inc | ||
---|---|---|
24 | 24 |
'properties' => $field->properties, |
25 | 25 |
); |
26 | 26 |
if (!empty($field->ui_limit)) { |
27 |
$fields[$entity_type][$key]['ui_limit'] = explode("\n", $field->ui_limit); |
|
28 |
// Ensure that all strings are trimmed, eg. don't have |
|
29 |
// extra spaces, \r chars etc. |
|
30 |
foreach ($fields[$entity_type][$key]['ui_limit'] as $k => $v) { |
|
31 |
$fields[$entity_type][$key]['ui_limit'][$k] = trim($v); |
|
32 |
} |
|
27 |
$lines = explode("\n", $field->ui_limit); |
|
28 |
$fields[$entity_type][$key]['ui_limit'] = $lines; |
|
33 | 29 |
} |
34 | 30 |
} |
35 | 31 |
} |
... | ... | |
79 | 75 |
'properties' => array( |
80 | 76 |
'settings' => array( |
81 | 77 |
'link text' => array('type' => 'textfield'), |
78 |
'link class' => array('type' => 'textfield', 'description' => t('Put a class on the link. Eg: btn btn-default')), |
|
82 | 79 |
'wrapper' => array('type' => 'textfield', 'description' => t('Eg: h1, h2, p')), |
83 | 80 |
'class' => array('type' => 'textfield', 'description' => t('Put a class on the wrapper. Eg: block-title')), |
84 | 81 |
), |
85 |
'default' => array('link text' => 'Read more', 'wrapper' => '', 'class' => '', 'link' => 1), |
|
82 |
'default' => array('link text' => 'Read more', 'link class' => '', 'wrapper' => '', 'class' => '', 'link' => 1),
|
|
86 | 83 |
) |
87 | 84 |
); |
88 | 85 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules