You are here

public static function PartyPrimaryFields::getDataSetInfo in Party 7

Get data set info including the spoofed party.

Parameters

string $data_set: Optionally return the info for a single data set.

Return value

FALSE|array Data set info array. If $data_set is not given, it is outer keyed by data set name. If it is set and it is not available, FALSE is returned.

2 calls to PartyPrimaryFields::getDataSetInfo()
PartyPrimaryFields::buildSources in includes/party.primary_fields.inc
Build the primary field source information.
PartyPrimaryFields::sourceForm in includes/party.primary_fields.inc
Set up a source form under the given element.

File

includes/party.primary_fields.inc, line 363
Primary field related functions and callbacks.

Class

PartyPrimaryFields
Helper class for primary fields.

Code

public static function getDataSetInfo($data_set = NULL) {
  if (!isset(self::$data_sets)) {
    self::$data_sets = array(
      'party' => array(
        'set_name' => 'party',
        'label' => 'Party',
        'entity type' => 'party',
        'entity bundle' => 'party',
      ),
    );
    self::$data_sets += party_get_data_set_info();
  }
  if ($data_set) {
    return isset(self::$data_sets[$data_set]) ? self::$data_sets[$data_set] : FALSE;
  }
  return self::$data_sets;
}