You are here

function crm_core_activity_type_save in CRM Core 7

Creates or saves an activity type.


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/
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().


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


function crm_core_activity_type_save($activity_type) {
  return entity_get_controller('crm_core_activity_type')