You are here

function strongarm_schema_alter in Strongarm 7.2

Same name and namespace in other branches
  1. 6.2 strongarm.module \strongarm_schema_alter()

Implements hook_schema_alter(). Makes the variables table usable by ctools' export.inc.

File

./strongarm.module, line 54

Code

function strongarm_schema_alter(&$schema) {
  $schema['variable']['export'] = array(
    'key' => 'name',
    'identifier' => 'strongarm',
    'default hook' => 'strongarm',
    'api' => array(
      'owner' => 'strongarm',
      'api' => 'strongarm',
      'minimum_version' => 1,
      'current_version' => 1,
    ),
  );
  $schema['variable']['fields']['value']['serialize'] = TRUE;
}