'alexa', 'title' => t('Alexa'), 'callback' => 'alexa_page', 'alexa_page2', 'access' => user_access('access alexa'), ); } return $items; } /** * trying to add a button so that it can be selected 'reach' 'page view' or 'rank'. */ function alexa_page2() { $form['button6'] = array( '#type' => 'textfield', '#title' => t('replace domains, and press submit'), '#default_value' => 'test', ); $form['button7'] = array( '#type' => 'textfield', '#default_value' => 'test', ); $form['button8'] = array( '#type' => 'textfield', '#default_value' => 'this is a test, module not done' , ); $form['button9'] = array( '#type' => 'textfield', '#default_value' => 'www.slashdot.org' , ); $form['button10'] = array( '#type' => 'textfield', '#default_value' => 'www.digg.com' , ); $form['submit'] = array( '#type' => 'submit', '#value' => t('Get Alexa Charts') ); return drupal_get_form('alexa_page2',$form); } /** * end of this test */ /** * this actually works. users can enter a text field here and the graph will actually be displayed. */ function alexa_page() { $form['button1'] = array( '#type' => 'textfield', '#title' => t('replace domains, and press submit'), '#default_value' => 'test', ); $form['button2'] = array( '#type' => 'textfield', '#default_value' => 'test', ); $form['button3'] = array( '#type' => 'textfield', '#default_value' => 'this is a test, module not done' , ); $form['button4'] = array( '#type' => 'textfield', '#default_value' => 'www.slashdot.org' , ); $form['button5'] = array( '#type' => 'textfield', '#default_value' => 'www.digg.com' , ); $form['submit'] = array( '#type' => 'submit', '#value' => t('Get Alexa Charts') ); return drupal_get_form('alexa_page',$form); }