You are here

function party_hat_get_hat_data_sets in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_hat/party_hat.module \party_hat_get_hat_data_sets()

Get all the sets for a Hat.

This returns an array of sets that a Party Must have or can have multiple of.

@todo write params and return.

2 calls to party_hat_get_hat_data_sets()
party_hat_party_data_sets_alter in modules/party_hat/party_hat.module
Implements hook_party_data_sets_alter().
party_hat_party_form_hat_validate in modules/party_hat/party_hat.module
Additional validate handler to check party form for expected attached entities.

File

modules/party_hat/party_hat.module, line 253
party_hat.module Provides an extensible access system for parties.

Code

function party_hat_get_hat_data_sets($hat) {

  // @todo: this is flawed anyway, as it will simply return ALL data sets.
  // @see http://drupal.org/node/1663370.
  return drupal_map_assoc(array_keys($hat->data['data_sets']));
}