


Frontpage is a menu item…title won’t change
When I access site via / or /fp, I always get ‘Home’, this only happens for the home page…How can I change the title? $items[‘fp’] = array( ‘title’ => ‘Front Page’, ‘page callback’ =>... read more
Forms : How to add elements on the client without a (ajax) round trip to the server [closed]
I have been playing with AJAX examples. What I’d like to do is have elements added to the form without requiring a round trip to the server. I guess Drupal requires this to rebuild the form with the new elements. Is it possible to do this without calling back... read more
How to troubleshoot edit node page timeout errors?
When I try to update the body of a basic page, Drupal 7 times out after I press the “Save” button and wait for a while. Surprisingly, I can successfully update my other pages through Drupal forms. I cleared all caches but that didn’t help. I tried to... read more
Required regions for a theme
Are there a set of required regions for a theme that they must have? I thought I read this in the documentation at one point, but I can’t find it again. read more
Programmatically import users and create each for them organic groups
I have a function that allows me to create users from the data of an external database: function _loginuser_authenticate_validate($form, &$form_state) { global $user; // Use external database. db_set_active(‘external_database’); // … } Now I want to... read more
Setting up a date field to require an end date
I’m attempting to create a custom content type for a module via hook_install. When I create a date type (from Date module), I want it to require an end date (there’s a checkbox when you’re setting up the field via the gui). This is the settings array... read more
How to get a node by its url alias?
I know I can load a node by its title with the node_load() function. Is it possible to load a node by its URL alias? read more
Want parent MENU_LOCAL_TASK tab to show when on a child page
I have a set of local task menu items defined in my module. This includes the following items: control => MENU_NORMAL_ITEM control/jobs => MENU_DEFAULT_LOCAL_TASK control/jobs/% => MENU_??? control/download => MENU_LOCAL_TASK control/settings =>... read more
Breadcrumb/block settings
Should Views (that are setup as a Page) be able to inherit breadcrumbs/block visibility settings? When I create a Views page, set a path, add it to the menu (then adjust it to be a sub-menu of another parent item), when I am on the actual Views page, it looses (in... read more