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 8361661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:44:47+00:00 2026-06-09T11:44:47+00:00

Am new to Drupal , so please excuse if am missing anything obvious. Can

  • 0

Am new to Drupal , so please excuse if am missing anything obvious.
Can we programmatically lookup a block using the description instead of id ?

Currently am using :

module_invoke('block', 'block', 'view', 17);

I wish to use something like

module_invoke('block', 'block', 'view', 'myBlockName');

Any thoughts ?

  • 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-09T11:44:48+00:00Added an answer on June 9, 2026 at 11:44 am

    The “View” Operation of block hook, does a lookup in the database based on “bid”

    "SELECT body, format FROM {boxes} WHERE bid = {$delta}"
    

    So you will not be able to call a block by its name unless you override the hook. ie create your own

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

Sidebar

Related Questions

I'm relatively new to the web development scene, so please excuse any frustratingly obvious
Im kinda new to drupal, and its views. SO can anybody tell me how
I'm new in drupal and currently I have to get a way to create
Totally new to Drupal so be gentle please! Let's say I have a number
Im using drupal-7 for my new project. Since imagecache is moved to drupal core
Pretty new to drupal 7 and a lot has changed. How can I simply
I am new to Drupal, so can any one tell me, how to add
When i go to modules tab i can't find new module install link Please
I'm new to learning Drupal and I'm hoping someone can explain something to me.
I'm sort of new to Drupal 7. I am using Drupal Form API and

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.