You are here

function pathauto_i18n_insert_settings in Pathauto i18n 8

Same name and namespace in other branches
  1. 7 pathauto_i18n.module \pathauto_i18n_insert_settings()

Insert settings for entity.

1 call to pathauto_i18n_insert_settings()
pathauto_i18n_process_entity_object in ./pathauto_i18n.module
Insert entity to pathauto_i18n table and generate alias if necessary.

File

./pathauto_i18n.module, line 131
Provides common functions and callbacks for pathauto_i18n submodules.

Code

function pathauto_i18n_insert_settings($entity_id, $entity_type, $bundle, $path_status) {
  db_merge('pathauto_i18n')
    ->key(array(
    'entity_id' => $entity_id,
    'entity_type' => $entity_type,
  ))
    ->fields(array(
    'entity_id' => $entity_id,
    'entity_type' => $entity_type,
    'bundle' => $bundle,
    'path_status' => $path_status,
  ))
    ->execute();
}