Whenever I modify pathauto to change blog / galleries / forum links, URL aliases still retain the old aliases URLs.
Plus, when nodes are deleted, their aliases are still there.
So is there a way to:
1) automatically delete all the *old* URL aliases whenever the pathauto is updated / modified to new paths?
2) automatically delete all the URL aliases when the node is deleted? For instance: users deleting their blogs, galleries or pages or when they cancel their account (using user cancellation module)..
I apologize if this is a repeat but i have looked all over and haven't found what i am looking for.
I have a simple webform but i'm having trouble figuring out how to access the data that the user has entered. There are only 3 fields the user has to populate:sector, company and name My understanding is that the values of the fields are available in either the form_values arrary or in the _POST array. I used a redirect page and the 'print_r($_POST);' function to disply the values. The output looked something like this:
Is there a cleaner way to reference the submitted fileds? Unless I misunderstand something, if I want to access the 'sector' field, i have to explicitly reference it using the defined name: name="submitted[1185485983]. I realize i can access the array using the following: (foreach ($form_values['submitted'] as $field_id => $value)
But if I wanted to explicitly do something with the sector field, I would have to check that the field_id is = 1185485983.
I think it would be great if Drupal had a "Share on " feature like Facebook's share.php. Many sites have a "Share on Facebook" button, but there is also a link you can bookmark so you can share any page you visit on the web.
I'm currently building on a wizard to let none tech users easily create/edit content. To achieve that goal I need to adapt the add form to display in the wizard and to have it simplyfied by removing most of the collapsed fieldsets.
Do I use the hook_form or how can I achieve this?
Can somebody please point me in the right direction?
I like typo3 for it's approach to add 'elements' to an 'elementset' (terminology may be wrong), where you can chose between several predefined elements such as "text", "image" or "text with image" which are concatenated for the output of the elementset as the page's content.