Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $title='put title here';
- $node_id=db_select('node', 'n')
- ->fields('n',array('nid'))
- ->condition('title',$title,'=')
- ->execute()
- ->fetchField();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement