Unable to submit a form while using hook_menu_alter()

Hi All,
I am implementing hook_menu_alter() for Add User, but could not submit a form

Here is my code

/**
* Implements hook_menu_alter()
* Redirect Peoples callback to custom function
*/
function accounts_management_menu_alter(&$items) {

// Add Employee
$items['admin/people/create']['title'] = 'Add Employee';
$items['admin/people/create']['page callback'] = 'trgemployees_admin';
$items['admin/people/create']['file path'] = drupal_get_path('module', 'accounts_management');
$items['admin/people/create']['file'] = 'trgemployees.admin.inc';
unset($items['admin/people/']['file']);
}

// Functions inside trgemployees.admin.inc
// check operations and call that function
function trgemployees_admin($callback_arg = '') {
$op = isset($_POST['op']) ? $_POST['op'] : $callback_arg;
switch ($op) {
case t('Create new Employee'):
case 'create':
$build['employee_create'] = drupal_get_form('trgemployee_account_form');
break;
default:
$build['employees_filter_form'] = drupal_get_form('employees_filter_form');
$build['employees_admin'] = drupal_get_form('employees_list');
}
return $build;
}

// Here is form function
/**
* Implementation of trgemployee_account_form()
*/
function trgemployee_account_form($form, $form_state, $employeeid = "", $op = "add") {
$form = array(

Where do I find the ftp settings?

I need to change the ftp settings Drupal uses to do things like unload new themes / modules, but I can't find them anywhere. Where are they?

TIA

How to set up two or more sites and get rid of 'drupal' in the urls

I'm a newbie and have a test site on my local PC.

I also have a domain and can point subdomains to my PC.

For example, to get to my site from the WAN I use site1.example.com/drupal.

It works but what if I add a second site -- site2.example.com/drupal; and how do I get rid of the "drupal"?

IOW, I want WAN side users to just go to site1.example.com or site2.example.com both w/o the "drupal".

Thanks,

CC

CCK: add another item always from the same input field

Hi. I'm looking for a cck module which will run quite similar to a text field with Unlimited values, but the input of values is always done from the same input field.
As soon as the user has added a value, he will click on a "submit value" button which will add the value to a list in bottom of the input field.
Then he will be able to add other values, still form the same input field on top of the list.

Cannot find any module doing that. And I still don't know how to start coding this feature. Should I extend the basic cck text field or create a new cck module ?

Weird notice message at top of pages

I have been creating a custom theme and the pages were rendering on my site correctly. However I was told to clear the cache on this post http://drupal.org/node/1163528

Once I did this I started getting the problems with the page rendering and getting the following messages appearing at the top of the pages.


* Notice: Undefined variable: site_name_and_slogan in include() (line 15 of /var/www/vhosts/bickleyparkschool.co.uk/httpdocs/drupal-7.0/sites/all/themes/bickley/page.tpl.php).
* Notice: Undefined variable: site_name_and_slogan in include() (line 15 of /var/www/vhosts/bickleyparkschool.co.uk/httpdocs/drupal-7.0/sites/all/themes/bickley/page.tpl.php).
* Notice: Undefined variable: site_html in include() (line 17 of /var/www/vhosts/bickleyparkschool.co.uk/httpdocs/drupal-7.0/sites/all/themes/bickley/page.tpl.php).
* Notice: Undefined variable: primary_nav in include() (line 30 of /var/www/vhosts/bickleyparkschool.co.uk/httpdocs/drupal-7.0/sites/all/themes/bickley/page.tpl.php).
* Notice: Undefined variable: secondary_nav in include() (line 31 of /var/www/vhosts/bickleyparkschool.co.uk/httpdocs/drupal-7.0/sites/all/themes/bickley/page.tpl.php).
* Notice: Undefined index: sidebar_first in include() (line 34 of /var/www/vhosts/bickleyparkschool.co.uk/httpdocs/drupal-7.0/sites/all/themes/bickley/page.tpl.php).

Better UI for "Parent Item" menu link selector

Hi,

When you create a new content, the selection of the "Parent Item" for the menu link is note always usable for a basic user.
Because you could have around 50 items in one HTML select tag.

So I would like to improve the UI of the "Parent Item". I don't know if there is a module doing somethings like that ?
If someone could help me ?

Regards

Aleanar

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x