function custom_breadcrumbs_schema_alter in Custom Breadcrumbs Features 7.2
Implements hook_schema_alter().
Declare machine_name field in breadcrumb tables.
File
- ./
custom_breadcrumbs_features.install, line 16 - Install file for custom_breadcrumbs_features.
Code
function custom_breadcrumbs_schema_alter(&$schema) {
// Load .module so we can retrieve types.
drupal_load('module', 'custom_breadcrumbs_features');
$tables = array_keys(_custom_breadcrumbs_features_get_types());
foreach ($tables as $table) {
$schema[$table]['fields']['machine_name'] = array(
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
'description' => 'The unique machine name for the custom breadcrumb.',
);
$schema[$table]['unique keys']['machine_name'] = array(
'machine_name',
);
}
}