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 am working a custom node module to expose CiviCRM records to users on a website. The goal of the module is to set up a "campaign" node with a group from CiviCRM that my users will contact. I want to make the contact methods modular, so that people can write new modules to allow for new methods of contacting the targets (some examples: email to the targets with a sample letter, provide the target's phone number and log a phone call, provide a door-knocking list for canvassers, etc).
Is it possible to display the $breadcrumb variable from within a block? I have tried using the variable '$breadcrumb' in an existing block but nothing shows up. I guess this only works when called from page.tpl.php?
I am the webmaster of an interactive news portal where aggregator2 is an integral module. I am trying to make the transition from Drupal 4.6.5 to 4.7 (the themes are so much better) but I can't until aggregator2 works with 4.7. There is not currently an official 4.7 version of aggregator2 released but the cvs version does have some edits to make it ready for 4.7. Right now, the agggregator2 module works well but it is not generating blocks with the titles of the feed items. Does anyone know how to fix this? Thanks!
I have a simple question. In fact it is so simple that I am very surprised not to have found the answer anywhere in the forums. I just need to know how to get the result of a form_select when multiple selections are allowed.
Normally the answer would be $node->name_of_my_form_element but that doesn't make sense in this case because there must be multiple values. I tried $node->name_of_my_form_element[$i] as well, and this does not yield results.
I'm very new to module dev in Drupal. I've used hook_form to create my custom fields and one button. I need the button to execute a function defined in the module when it's clicked. Can someone show me how to do this?