id); if ($feed_nid && is_numeric($feed_nid)) { return "feeds/importer/$id/$feed_nid"; } return "feeds/importer/$id"; } /** * Menu item definition for fetchers of this class. Note how the path * component in the item definition matches the return value of * FeedsFetcher::path(); * * Requests to this menu item will be routed to FeedsFetcher::request(). * * @return * An array where the key is the Drupal menu item path and the value is * a valid Drupal menu item definition. */ public function menuItem() { return array( 'feeds/importer/%feeds_importer' => array( 'page callback' => 'feeds_fetcher_callback', 'page arguments' => array(2, 3), 'access callback' => TRUE, 'file' => 'feeds.pages.inc', 'type' => MENU_CALLBACK, ), ); } /** * Subscribe to a source. Only implement if fetcher requires subscription. * * @param FeedsSource $source * Source information for this subscription. */ public function subscribe(FeedsSource $source) {} /** * Unsubscribe from a source. Only implement if fetcher requires subscription. * * @param FeedsSource $source * Source information for unsubscribing. */ public function unsubscribe(FeedsSource $source) {} }