You are here

function tca_schema_alter in Token Content Access 7

Implements hook_schema_alter().

File

./tca.module, line 14
The Token Content Access module file.

Code

function tca_schema_alter(&$schema) {

  // Get the Token Content Access fields.
  $fields = tca_schema_fields();

  // Get the modules that are implementing hook_tca(),
  // and add the fields to the base table of that entity.
  $modules = module_invoke_all('tca');
  foreach ($modules as $module => $info) {
    $schema[$info['base table']]['fields'] += $fields;
  }
}