You are here

function _sharerich_extra_field_default_info in Sharerich 7.2

Same name and namespace in other branches
  1. 7.3 sharerich.module \_sharerich_extra_field_default_info()

Helper function to generate sharerich extra fields info.

Parameters

integer $id: The instance identifier to use. Defaults to 1.

Return value

array

2 calls to _sharerich_extra_field_default_info()
sharerich_field_extra_fields in ./sharerich.module
Implements hook_field_extra_fields().
_sharerich_extra_field_default_info_set in ./sharerich.module
Get a set of Sharerich extra fields information for a specific node type.

File

./sharerich.module, line 472

Code

function _sharerich_extra_field_default_info($id = 1) {
  return array(
    'display' => array(
      'sharerich_' . $id => array(
        'label' => t('Sharerich #!num', array(
          '!num' => $id,
        )),
        'description' => t('This is a extra field, you can configure it on each Display.'),
        'weight' => 100,
        'visible' => FALSE,
        'settings' => array(
          'sharerich_sets' => 0,
        ),
      ),
    ),
  );
}