You are here

function pathauto_i18n_load_settings_single in Pathauto i18n 8

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

Load settings for entity.

1 call to pathauto_i18n_load_settings_single()
pathauto_i18n_user_pathauto_alias_alter in modules/pathauto_i18n_user/pathauto_i18n_user.module
Implements hook_pathauto_alias_alter().

File

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

Code

function pathauto_i18n_load_settings_single($id, $entity_type) {
  return db_select('pathauto_i18n', 'p')
    ->fields('p', array(
    'entity_id',
    'path_status',
  ))
    ->condition('p.entity_id', $id)
    ->condition('p.entity_type', $entity_type)
    ->execute()
    ->fetchAssoc();
}