You are here

function _sharerich_extra_field_default_info_set in Sharerich 7.2

Same name and namespace in other branches
  1. 7.3 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 498

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),
        ),
      ));
    }
  }
}