why the hook_form_alter() code doesn't work in drupal7?

function mycaptcha_form_alter(&$form, &$form_state, $form_id) {
        if ($form_id == 'comment_form') {

              mycaptcha_ask_form($form);
            echo 'test';

          }
        }   
    function _mycaptcha_get_ask($key = NULL) {

  $ask = array(
    'test 1' => 'example 1',
  'test 2' => 'example 2',
  );

  return isset($key) ? $ask[$key] : $ask;
}


function mycaptcha_ask_form(&$form) {
  $ask = _mycaptcha_get_ask();

Theme/Template changes keep reverting back to original

I save and view changes i made, then go back to edit the code again, then save and view again and changes are reverted back to original settings of the theme/template. How can I prevent this from happening? im going in a big circle and its very irritating :-/. I cant keep any of the changes that i make

Trigger + Cron

Does anyone know how i can define a trigger that runs based on a cron event? (i.e. trigger an event, once every month etc)

Trouble with simple email to users.

Hi All,
I have been struggling to get a simple email notice going out to all users who fall under a certain taxonomy definition, 1nce per month (i.e. using cron).

I've been through Notifications module + Scheduler (didn't work because you have to predefine the email sent out)
Simplenews (fails because can't figure out a way to send it on a schedule)

This seems just so basic! Can anyone point out the easy solution?

Insert a poll into article content type

I recently created a view to mimick the front page where I can display articles that do not belong on the front page. Everything worked great, but I want to add a poll to the actual article page that is displayed from the view. So it would go like this: User clicks on main menu link for the view that I created. The articles are displayed just like on the home page. The user clicks on one of the articles. At the bottom of the article (just before the Tweet button and Facebook like button) I want to display a simple poll.

Can't login to website

I'm having some weird login problems. I've been trying to search for available solutions, but it seems I have an isolated problem. I'll list the situations below to maybe assist with some help.

1) Home -> user login block
Using the correct login user/pass from the block, the next page loads slow as if it worked then I'm greeted with just the home page and the user login block blank asking for user/pass again. I get no status message about login failed.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x