You are here

function crm_core_activity_type_save in CRM Core 7

Creates or saves an activity type.

Parameters

object $activity_type: The activity type info to be saved

2 calls to crm_core_activity_type_save()
CRMCoreActivityTypeFeaturesController::revert in modules/crm_core_activity/includes/crm_core_activity.controller.inc
Overridden to prevent data loss on activity type delete.
crm_core_activity_install in modules/crm_core_activity/crm_core_activity.install
Implements hook_install().

File

modules/crm_core_activity/crm_core_activity.module, line 397
Provides an entity for recording a contact's activities.

Code

function crm_core_activity_type_save($activity_type) {
  return entity_get_controller('crm_core_activity_type')
    ->save($activity_type);
}