Skip to content

Instantly share code, notes, and snippets.

@james-nesbitt
Last active May 13, 2016 14:06
Show Gist options
  • Save james-nesbitt/340f8073f4a5a2f90591f78ba32f90ba to your computer and use it in GitHub Desktop.
Save james-nesbitt/340f8073f4a5a2f90591f78ba32f90ba to your computer and use it in GitHub Desktop.
Candy Data
<?php
$data['ekk_candidate']['contest_id'] = [
'title' => t('Contest'),
'help' => t('Candidate contest nid field.'),
'field' => [
'id' => 'numeric',
'click sortable' => TRUE,
],
'filter' => [
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
'sort' => [
'id' => 'standard',
],
'relationship' => [
'id' => 'standard',
'base' => 'node',
'base field' => 'nid',
'handler' => "standart",
'label' => t('Contest for the candidate'),
'title' => t('Content for the candidate'),
],
];
$data['ekk_candidate']['user_id'] = [
'title' => t('User ID thingi'),
'help' => t('User id'),
'field' => [
'id' => 'numeric',
'click sortable' => TRUE,
],
'filter' => [
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
'sort' => [
'id' => 'standard',
],
'relationship' => [
'id' => 'standard',
'base' => 'user',
'base field' => 'uid',
'handler' => "standard",
'label' => t('User ID thingi'),
'title' => t('User ID thingi'),
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment