开发者

How to get the title of the Webform?

开发者 https://www.devze.com 2023-03-23 17:18 出处:网络
I have a webform. I have written the php code in my module file which executes on webform submi开发者_StackOverflow社区ssion.

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

精彩评论

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