updated imce, colorbox, admin_menu_source, honey_pot

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-05 16:33:10 +01:00
parent 2e0abeed03
commit 7aeabebddf
28 changed files with 455 additions and 123 deletions

View File

@@ -0,0 +1,12 @@
name = honepot_test
description = Support module for Honeypot internal testing purposes.
core = 7.x
package = Testing
hidden = true
; Information added by Drupal.org packaging script on 2016-03-11
version = "7.x-1.22"
core = "7.x"
project = "honeypot"
datestamp = "1457672041"

View File

@@ -0,0 +1,30 @@
<?php
/**
* Implements hook_menu().
*/
function honeypot_test_menu() {
return array(
'honeypot_test/submit_form' => array(
'page callback' => 'honeypot_test_submit_form',
'access callback' => TRUE,
),
);
}
/**
* Page callback: programmatically submit a form.
*/
function honeypot_test_submit_form() {
module_load_include('inc', 'user', 'user.pages');
$form_state = array();
$form_state['values'] = array(
'name' => 'robo-user',
'mail' => 'robouser@example.com',
'op' => t('E-mail new password'),
);
drupal_form_submit('user_pass', $form_state);
$errors = form_get_errors();
print drupal_json_encode($errors);
exit();
}