Hi,
i am drupal newbie, and i need a custom view of nodes.
Views module is great, but not for this project (my view contains computed fields too, but it cannot be used in Views modules + instead of apply button onchange event triggers the form)
That's why i need a simple module, which has a form and a list of nodes.
Sorry to say i cannot figure it out.
I would like to do it in 'drupal way' (not with global variables $_REQUEST etc)
<?php
function mytype_menu() {
$items['mymenu'] = array(
'title' => 'Example',
'page callback' => 'drupal_get_form',
'page arguments' => array('get_filters_form'),
'access callback' => TRUE,
);
return $items;
}
function mytype_theme() {
return array
(
'mytype_theme' => array
(
'arguments' => array('form' => NULL),
'render element' => 'form',
),
);
}
function theme_mytype_theme($variables) {
$form = $variables['form'];
$header = array(t('A'), t('B'), t('C'));
$rows = array();
//here i would create an array with the nodes but i cannot get the submitted data :(((
$output = theme('table', array('header' => $header, 'rows' => $rows));
return drupal_render_children($form) . $output ;
}
function get_filters_form($form, &$form_state){
drupal_set_message('called get_filters_form');
$form['bar-1'] = array(