I am having a hard time figuring out the workflow of the Drupal form API and how it interacts with other aspects of PHP, SQL and HTML. One aspect I am having difficulty with is how to access and manipulate data once a form has been submitted.
I thought it might help to design an few simple HTML and PHP forms and then figure out how to do the same thing in Drupal.
I've written the following simple form that asks for a persons name and then says hi
What is the right "Drupal" way of getting breadcrumbs that reflect the user selections from a custom menu I created?
Instead of the "Main" menu, I'm using a menu called "Presentation". The $breadcrumb variable in my page.tpl.php page simply shows the word "Home" no matter what item I click on the "Presentation" menu.
I realize I might have to build my own breadcrumbs, but what is the right way to do this in Drupal7?
For example, I could hack this and simply display a custom string depending on the current node being displayed. Is that the best way?
I'm setting up a workflow that may require content edit permissions to be set at the field level based on the state of the node (Draft/Archived/etc.)
I can set granular field permissions using the Field Permissions module but can't find a way to toggle them based on a rule.
In the digging I've done so far, it looks like this *may* be workable with the Rules module but I'm not finding anything of substance. Can someone point me in the right direction?
Tried mymodule_preprocess_links__system_secondary_menu, but it did not work. (I got the idea of links__system_secondary_menu via the Theme developer module)
How can I pinpoint and preprocess the secondary menu links only?
If I have to use mymodule_preprocess_links approach, how can I identify a group of links is the secondary menu?