You are here

function jeditable_views_data in jEditable inline content editing 7

Implements hook_views_data()

File

includes/jeditable.views.inc, line 22

Code

function jeditable_views_data() {

  // published status
  $data['node']['status-jeditable'] = array(
    'title' => t('Published') . ' - jeditable',
    'help' => t('Whether or not the content is published.'),
    'field' => array(
      'field' => 'status',
      'handler' => 'views_handler_field_jeditable',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );
  $data['node']['sticky-jeditable'] = array(
    'title' => t('Sticky') . ' - jeditable',
    // The item it appears as on the UI,
    'help' => t('Whether or not the content is sticky.'),
    // The help that appears on the UI,
    'field' => array(
      'field' => 'sticky',
      'handler' => 'views_handler_field_jeditable',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );
  $data['node']['promote-jeditable'] = array(
    'title' => t('Promoted to front page') . ' - jeditable',
    'help' => t('Whether or not the content is promoted to the front page.'),
    'field' => array(
      'field' => 'promote',
      'handler' => 'views_handler_field_jeditable',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );
  return $data;
}