Guest User

Untitled

a guest
Jul 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function db_insert($table, array $options = array()) {
  2. // ...
  3. return Database::getConnection($options['target'])->insert($table, $options);
  4. }
  5.  
  6. function example_menu() {
  7. $items['node/%node/example'] = array(
  8. 'page callback' => 'example_page',
  9. 'page arguments' => array(1),
  10. // ...
  11. );
  12. return $items;
  13. }
  14.  
  15. function example_page($node) {
  16. // Do useful stuff here.
  17. }
Add Comment
Please, Sign In to add comment