开发者

How to get the title of the Webform?

I have a webform. I have written the php code in my module file which executes on webform submi开发者_StackOverflow社区ssion. In the code, I want to get the title of webform, and the name of the file attached to the webform. Any idea about this?


Create a function in your .module file and write a select query in your function. Look at the code below.

function get_node_title($nid){

$node = db_fetch_object(db_query("SELECT title FROM {node} WHERE nid = %d", $nid)); return $node->title; }

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜