function _sharerich_extra_field_default_info_set in Sharerich 7.3
Same name and namespace in other branches
- 7.2 sharerich.module \_sharerich_extra_field_default_info_set()
Get a set of Sharerich extra fields information for a specific node type.
Parameters
array $info: Extra field info passed by reference.
string $type: The node type in use.
integer $size: The number of instances to generate.
1 call to _sharerich_extra_field_default_info_set()
- sharerich_field_extra_fields in ./
sharerich.module - Implements hook_field_extra_fields().
File
- ./
sharerich.module, line 497
Code
function _sharerich_extra_field_default_info_set(&$info, $type, $size) {
if ($size > 0) {
for ($i = 1; $i <= $size; $i++) {
$info = drupal_array_merge_deep($info, array(
'node' => array(
$type => _sharerich_extra_field_default_info($i),
),
));
}
}
}