function object_log_object_page in Object Log 7
Menu callback function for "admin/reports/object_log/$label".
This function will also look at the given query path to find any additional objects that may have been requested.
Parameters
$label: The label of an object to inspect.
1 string reference to 'object_log_object_page'
- object_log_menu in ./
object_log.module - Implements hook_menu().
File
- ./
object_log.admin.inc, line 78
Code
function object_log_object_page($label) {
// Determine all of the requested objects.
if (strpos($_GET['q'], 'admin/reports/object_log') === 0) {
$labels = explode('/', str_replace('admin/reports/object_log/', '', $_GET['q']));
}
else {
$labels = array(
$label,
);
}
$build = object_log_build_objects($labels);
// Display the log table so the user can select another object to compare to
// the given object.
$build['object_log'] = array(
'header' => array(
'#type' => 'markup',
'#markup' => t('Select an object to compare with @label', array(
'@label' => $label,
)),
'#prefix' => '<h2>',
'#suffix' => '</h2>',
),
);
$build['object_log'] += object_log_build_log($label);
return $build;
}