View source
<?php
function jeditable_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'jeditable') . '/includes',
),
'handlers' => array(
'views_handler_field_jeditable' => array(
'parent' => 'views_handler_field',
),
),
);
}
function jeditable_views_data() {
$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',
'help' => t('Whether or not the content is sticky.'),
'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;
}