You are here

function party_hat_load in Party 7

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

Load a hat.

Parameters

$hat_name: The machine name of the hat to load.

Return value

A hat entity object.

7 calls to party_hat_load()
PartyB2BContactPartyMigration::complete in starterkits/party_starterkit_b2b/party_starterkit_b2b_migrate/party_starterkit_b2b_migrate_contacts.inc
Attach profile2 from PartyOrganizationProfile2Migration
PartyB2BOrganizationPartyMigration::complete in starterkits/party_starterkit_b2b/party_starterkit_b2b_migrate/party_starterkit_b2b_migrate_organizations.inc
Attach profile2 from PartyOrganizationProfile2Migration
PartyHatTestCase::testPartyHatCrud in modules/party_hat/tests/party_hat.test
Test party hat crud functionality through the UI and programatically.
party_hat_field_formatter_view in modules/party_hat/party_hat.module
Implements hook_field_formatter_view().
party_hat_get_hats in modules/party_hat/party_hat.module
Get all the Hats a Party is Wearing

... See full list

File

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

Code

function party_hat_load($hat_name) {
  $party_hats = entity_load_multiple_by_name('party_hat', array(
    $hat_name,
  ));
  return reset($party_hats);
}