You are here

function ds_ds_field_operations_alter in Display Suite 8.2

Same name and namespace in other branches
  1. 8.4 ds.module \ds_ds_field_operations_alter()
  2. 8.3 ds.module \ds_ds_field_operations_alter()

Implements hook_ds_field_operations_alter().

File

./ds.module, line 939
Display Suite core functions.

Code

function ds_ds_field_operations_alter(&$operations, $field) {
  if ($field['type'] == 'block') {
    $operations['config'] = array(
      'title' => t('Configure block'),
      'url' => new Url('ds.manage_block_field_config', array(
        'field_key' => $field['id'],
      )),
    );
  }
}