You are here

function content_menu_init in Content Menu 7

Implements hook_init().

Necessary to invoke for ajax callback to work correctly. @todo Refactor as ajax is actually not used.

File

./content_menu.module, line 90
Main code for the content_menu.module.

Code

function content_menu_init() {
  if (arg(0) == 'admin' || arg(0) == 'system' && arg(1) == 'ajax') {
    module_load_include('inc', 'content_menu', 'content_menu.menu_admin');
  }
}