Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/entity_context/entity_field.inc | ||
---|---|---|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
/** |
99 |
* Render the custom content type. |
|
100 |
*/ |
|
99 |
* Render the custom content type.
|
|
100 |
*/
|
|
101 | 101 |
function ctools_entity_field_content_type_render($subtype, $conf, $panel_args, $context) { |
102 | 102 |
if (empty($context) || empty($context->data)) { |
103 | 103 |
return; |
... | ... | |
167 | 167 |
|
168 | 168 |
// Build the content type block. |
169 | 169 |
$block = new stdClass(); |
170 |
$block->module = 'entity_field';
|
|
170 |
$block->module = 'entity_field'; |
|
171 | 171 |
if ($conf['label'] == 'title' && isset($field_output['#title'])) { |
172 | 172 |
$block->title = $field_output['#title']; |
173 | 173 |
} |
... | ... | |
186 | 186 |
} |
187 | 187 |
|
188 | 188 |
/** |
189 |
* Returns an edit form for custom type settings. |
|
190 |
*/ |
|
189 |
* Returns an edit form for custom type settings.
|
|
190 |
*/
|
|
191 | 191 |
function ctools_entity_field_content_type_formatter_options($form, &$form_state) { |
192 | 192 |
if (empty($form_state['conf']['formatter_settings'])) { |
193 | 193 |
$form_state['conf']['formatter_settings'] = array(); |
Formats disponibles : Unified diff
Weekly update of contrib modules