Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm trying to add the same access control features from node.module into page.module. I added an 'access content' permission, and then in page_access I added a user_access check that I copied straight out of node.module.
Neither change is working. Anonymous users can access pages (but not nodes), and there are no new permissions in the page module section of access control. I've disabled and enabled the module, and I've re-started the web server, but still no dice.
I'm interested in extending the search functionality to incorporate the location of nodes as well as their content. I don't want to overcomplicate the search screen, so thought perhaps adding a location section to the advanced functionality box on the search page.
I am looking at creating a module for phpAdsNew that just supplies code to the drupal system so it would be available in my template. Considering it wouldn't have any relation to a node, is there anything special I must do?
On my module settings page, I need the user to enter data that will be saved directly to a custom db table.
Normally we use form_select to create the select field, and the 3rd value of that is typically variable_get(a,b). But that value updates to the {variables} table; I really do want to put my values in a separate table.
Is there a way to do this with form_select? If not, can anyone give me a few pointers on how to approach this?
I have a requirement to create some custom modules to manage a Project that has multiple Tasks associated with it, (think of a Brochure with multiple sections that are tasks), im thinking of making the "tasks" out of flexinode so its easy to create new ones and maybe even the Project (or "Brochure") itself out of flexinode, but -