Hi, this is my code:
function kitt_menu(){
$items['quoting'] = array(
'title' => '',
'page callback' => '_kitt_quotes',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}
function _kitt_quotes() {
$quotes_array = get_quotes_array();
return theme('quoting', array('quotes' => $quotes_array));
}
function kitt_theme($existing, $type, $theme, $path) {
return array(
'quoting' => array(
'variables' => array('risk' => NULL, 'quotes' => NULL),
)
);
}
i would like to do a simple and obvious thing: i have a variable in my module ($quotes_array) and i want to pass to my theme page. I think i should find it inside $variables in my page template, but i can't find it, it seems that the hook theme doesn't work correctly.
I made some errors in my code?
Can someone help me?
Thanks,
Calcifer
Comments
Comment #1
jhodgdonIt looks like you need some programming support.
I'm sorry, but although you can create issues in Drupal Core and mark the category as "support request", we don't really handle support requests in the Drupal Core issue queue as a regular practice (that option is mostly there for filing support issues for contributed modules and themes).
There are several support options listed if you click on "Support" at the top of Drupal.org, which will take you to:
http://drupal.org/support
There you can find out about the Drupal IRC channels, and the Forums, which are our two main support mechanisms in the Drupal community.
Good luck with your issue!
Comment #3
quietone commentedUpdating tags per Issue tags field and Issue tags -- special tags and for issue #3565085: Drupal core issue tag cleanup.