php - Missing argument 1 for function error -
warning: missing argument 1 function abc()
function ort_view_menu() { $items['thick_box_view'] = array( 'title' => 'viewed details', 'description' => 'g report', 'page callback' => 'abc', 'type' => menu_callback, 'access callback' => true, ); return $items; } function abc($nid) { $rows = array(); $node = node_load($nid);
is error caused due $nid used in function ?
yes, call function abc
not supply required argument $nid
needed in function.
Comments
Post a Comment