This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Custom Node Module Uninstallation

For a module that implements a custom node type, what should the module's uninstall logic delete all nodes created by the module?

This doesn't seem good, but it also seems weird leaving a bunch of nodes with no logic to handle them.

Any wisdom to share? :)

emails not working

Hi,

I'm running the latest version of Drupal and my forms don't seem to be sending notifications, emails(through contact forms) or anything at all out to email addresses.

Any help would be greatly appreciated.

Sarah

Displaying "My Recent Posts" as a menu item

Hi,

Just wondering if there's a way to display "My recent posts" as a menu item?

Any help would be much appreciated.

Sarah

five star voting system

Hi there,

Is there any way to set up a view or block to display the votes collated from the fivestar voting module? I hope to get a list of what is the most popular in accordance with the five-star rating. If this is not possible, is there some way to create a view or a block that displays 5 images that have been viewed the most?

Any help would be much appreciated :)

Thanks for your time.

Sarah

Dynamic Autocomplete

I'm trying to get a more dynamic autocomplete that will show different results based on the value of a different input within the same form. So far, I have my form:

$form['_search'] = array(
    '#type'   => 'fieldset',
    '#title'  => t('Search')
  );
  
  $form['_search']['search'] = array(
    '#type'   => 'textfield',
    '#title'  => 'Search',
    '#autocomplete_path'  => 'reports/autocomplete',
    '#size'   => 30,
  );
  
  $form['_search']['submit'] = array(
    '#type'   => 'submit',
    '#value'  => t('Search')
  );
  
  $form['_search']['where'] = array(
    '#type'   => 'radios',
    '#options' => array(
      'choice1'          => t('First Choice'),
      'choice2'          => t('Second Choice'))
  );

I came up with a little javascript that changes the autocomplete path based on the radio button chosen:

$('document').ready(
  $('@input[@name=where]').bind('change', function() {
        $('#edit-search-autocomplete').val('http://my.path.to/reports/autocomplete/'+$('input[@name=where]').val())
    }
  )
)

It all appears to work just fine (I alerted $(#edit-search-autocomplete).val() and saw what I expected to see), except that the autocomplete doesn't autocomplete anymore. I get a javascript error "jQuery.readyList[i].apply is not a function" in jquery.js when I include my javascript.

Remove poll block after users vote

Is it possible to remove poll block when user has voted? I was searching PHP snippets but didn't success.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions