You are here

function party_simplenews_add_subsciption_settings_attached_entity in Party 8.2

Add a subscription settings attached entity

1 call to party_simplenews_add_subsciption_settings_attached_entity()
party_simplenews_simplenews_subscriber_insert in modules/party_simplenews/party_simplenews.module
Implements hook_simplenews_subscriber_insert.

File

modules/party_simplenews/party_subscription_settings.api.inc, line 103
Helper functions etc for the subscription settings

Code

function party_simplenews_add_subsciption_settings_attached_entity($party) {
  $controller = party_get_crm_controller($party, 'subscription_settings');
  $controller
    ->getEntity(0, TRUE);
  $controller
    ->save(TRUE);
}