Guest User

Untitled

a guest
Sep 24th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2.  
  3. drupal_add_js(drupal_get_path('theme','gog').'/js/script.js', array('group' => JS_THEME));
  4.  
  5. /**
  6. * Implements hook_form_FORM_ID_alter().
  7. */
  8.  
  9. function customgog_form_user_login_block_alter(&$form, &$form_state) {
  10. //Add a title to the user-login-form so that the jQuery sign-in helper script I wrote will work!
  11. $form['name']['#title'] = t('just use the first part of your username - no @edc.org');
  12. $form['pass']['#maxlength'] = 40;
  13. };
  14.  
  15. function customgog_form_alter (&$form, &$form_state, $form_id) {
  16. // find the form_id
  17. dpm($form_id);
  18. //print out the variables for the form
  19. dpm($form);
  20. };
Add Comment
Please, Sign In to add comment