Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function f($x) { return $x; }
- ?>
- <?php
- if (!function_exists('f')) {
- function f($x) { return $x; }
- }
- ?>
- name = My module
- description = This is an awesome module.
- core = 7.x
- <?php
- /**
- * Implement hook_module.
- */
- function mymodule_menu() {
- $items['my-module'] = array(
- 'title' => 'RSS feed',
- 'page callback' => '_mymodule_run_import',
- 'access callback' => TRUE,
- 'type' => MENU_CALLBACK,
- );
- return $items;
- }
- function _mymodule_run_import() {
- // Place your custom code here.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement