By mohamedali on
function h_title(&arg(1)){$node = node_load(arg(1)); $ntitle = $node->title; return $ntitle;}
plz any help......
function h_title(&arg(1)){$node = node_load(arg(1)); $ntitle = $node->title; return $ntitle;}
plz any help......
Comments
no one to help????????
no one to help????????
Are you seriously bumping
Are you seriously bumping your post after only 4 minutes? Maybe you want to have a look at this page: http://drupal.org/forum-posting#crosspost.
Anyway, your function looks like a complicated way to do something simple. Can you explain what you're trying to do?
The parameter list looks very
The parameter list looks very wrong. Take a look at the PHP documentation to see how to define a signature.
!!
You have too many ?? and !! in this post. That's your main problem
.dan. is the New Zealand Drupal Developer working on Government Web Standards
function h_title(&arg(1)) {
you're using the function arg() as a referenced parameter and this is not a parameter usable at all. There should be only a variable like $pathargument or something representative. Later you are using the function again where you want the function parameter.
I would like me preposters before suggest some nice php documentation. http://www.php.net/manual/de/functions.arguments.php
The argument is wrong
Like already stated, the function parameter is wrong; it cannot be the value returned from a function. There is no programming language that would accept such function definition.
Then, for what the function code is, the function does not require a parameter at all.
Also, avoid using so much exclamation points; it seems you are screaming to the others.