Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8384441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:24:27+00:00 2026-06-09T17:24:27+00:00

i wrote a custom module for drupal 7, placed the folder and needed files

  • 0

i wrote a custom module for drupal 7, placed the folder and needed files under /sites/all/modules/module_name and enabled via the backend. This is my hook_menu function;

function blog_contact_settings_menu(){
    $items = array();
    $items["blog_contact/send_to_all"] = array(
        "title"=>"Mail all bloggers",
        "page callback"=>"drupal_get_form",
        "page arguments"=>array("blog_contact_page"),
        "access arguments"=>array("access content")
    );
    $items["blog_contact/send_to_one"] = array(
        "page_callback"=>"single_blogger_contact",
        "access_arguments"=>array("access content"),
        "type"=>MENU_CALLBACK
    );
    return $items;
}

My blog contactpage is suppoused to return a page with form but when i go to the /?q=blog_contact/send_to_all, it gives a 404. why happens that you little Einsteins?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:24:28+00:00Added an answer on June 9, 2026 at 5:24 pm
    • Try clearing cache (Admin > Config > Development > Performance > Clear all caches).
    • Does your blog_contact_page function return a form array ?
    • According to your function name, your module’s machine name should be “blog_contact_settings”. Nothing else will work.
    • You can check if your function gets called by adding some snippet like the one below to your hook_menu function.

      drupal_set_message(‘Hook menu function fired!’);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I needed to write a custom module in drupal to help out with my
I wrote a custom URL rewriting module, to take certain paths and map them
I am trying to write a custom magento module and i've got it all
I wrote a custom JSR-196 module, which combines multiple mechanisms to protect resources. It
I needed a custom field that couldn't be provided by the core profile module
I created a custom Drupal module and now want to save some preferences for
I want to write a drupal module that serves static files, but I want
I wrote a custom http module for a website in c# .NET. If i
I write custom Drupal module. Want show field_myear in contents. With the following: <div
i wrote a custom jquery function that accept a callback but not being able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.