function tripal_stock_get_stock_by_nid
2.x tripal_stock.DEPRECATED.inc | tripal_stock_get_stock_by_nid($nid) |
3.x tripal_stock.DEPRECATED.inc | tripal_stock_get_stock_by_nid($nid) |
1.x tripal_stock.api.inc | tripal_stock_get_stock_by_nid($nid) |
Purpose: Return a given stock node using the nid
Parameters
$nid: The node ID of the stock you want to load
Return value
stock node with the passed in node ID
Related topics
File
- tripal_stock/
api/ tripal_stock.api.inc, line 23 - Provides an application programming interface (API) to manage stocks
Code
function tripal_stock_get_stock_by_nid($nid) {
return node_load($nid);
}