Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. function f($x) { return $x; }
  3. ?>
  4.  
  5. <?php
  6. if (!function_exists('f')) {
  7. function f($x) { return $x; }
  8. }
  9. ?>
  10.  
  11. name = My module
  12. description = This is an awesome module.
  13. core = 7.x
  14.  
  15. <?php
  16. /**
  17. * Implement hook_module.
  18. */
  19. function mymodule_menu() {
  20. $items['my-module'] = array(
  21. 'title' => 'RSS feed',
  22. 'page callback' => '_mymodule_run_import',
  23. 'access callback' => TRUE,
  24. 'type' => MENU_CALLBACK,
  25. );
  26. return $items;
  27. }
  28.  
  29. function _mymodule_run_import() {
  30. // Place your custom code here.
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement