function noderelationships_init in Node Relationships 6
Implementation of hook_init().
See also
noderelationships_noderef_page_create().
File
- ./
noderelationships.module, line 443 - This is the main script for the noderelationships module. It merely contains the implementation of hooks invoked by Drupal core, CCK, Views, etc. All common functions are externalized into several scripts that are included on demand.
Code
function noderelationships_init() {
// Activate the admin theme if requested to.
if (arg(0) == 'noderelationships' && ($admin_theme = variable_get('admin_theme', '0')) != '0' && variable_get('noderelationships_admin_theme_children', '0')) {
$GLOBALS['custom_theme'] = $admin_theme;
}
// Enable the Modal Frame API for the child window.
if (!empty($_GET['noderelationships_referrer_type']) && !empty($_GET['noderelationships_field_name']) || !empty($_GET['noderelationships_edit'])) {
modalframe_child_js();
}
}