function noderelationships_admin_page in Node Relationships 6
Menu callback; relationships administration.
1 string reference to 'noderelationships_admin_page'
- _noderelationships_menu in ./
noderelationships.system.inc - Implementation of hook_menu().
File
- ./
noderelationships.admin.inc, line 11 - Implementation of the administration pages of the module.
Code
function noderelationships_admin_page($op, $type_name = NULL) {
// Include common module functions.
module_load_include('inc', 'noderelationships');
if (isset($type_name) && ($type = noderelationships_get_localized_content_type($type_name))) {
if (empty($op) || $op == 'erd') {
return noderelationships_erd_diagram($type);
}
if ($op == 'noderef') {
return drupal_get_form('noderelationships_admin_settings_noderef', $type);
}
if ($op == 'backref') {
return drupal_get_form('noderelationships_admin_settings_backref', $type);
}
}
// Fallback to page not found.
drupal_not_found();
}