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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -