Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292240

Figure out how to deal with 'theme callback'

$
0
0

Hook menu allowed items to specify a theme callback which is called to determine the used theme.

  $items['system/ajax'] = array(
    'title' => 'AHAH callback',
    'page callback' => 'ajax_form_callback',
    'access callback' => TRUE,
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
    'file path' => 'core/includes',
    'file' => 'form.inc',
  );

This has to happen somehow early in the request (before the actual _controller is called. It could be a method defined on the route or simply something manually called in your controller, though this feels wrong.


Viewing all articles
Browse latest Browse all 292240

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>