Add new comment

Пишем свой Views Handler Drupal7

В основном файле модуля реализуем хук hook_views_api():
/**
* Implementation of hook_views_api().
*/
function example_views_api() {
return array(
'api' => 3,
'path' => drupal_get_path('module', 'example'),
);
}


Далее объявим свой хандлер с помошью хука hook_views_handlers()

Категория: 
The code has been tested and works

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.