function og_membership_type_save

cis7 og.module og_membership_type_save($og_membership)
cle7 og.module og_membership_type_save($og_membership)
elmsmedia7 og.module og_membership_type_save($og_membership)
icor7 og.module og_membership_type_save($og_membership)
meedjum_blog7 og.module og_membership_type_save($og_membership)
mooc7 og.module og_membership_type_save($og_membership)

Inserts or updates an OG membership type entity into the database.

Parameters

$og_membership: The OG membership type entiyt to be saved.

Return value

Failure to write a record will return FALSE. Otherwise SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.

File

sites/all/modules/ulmus/og/og.module, line 1197
Enable users to create and manage groups with roles and permissions.

Code

function og_membership_type_save($og_membership) {
  return entity_save('og_membership_type', $og_membership);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.