Community & Support

Receiving warning in custom module

Hello Guys,

I am new to drupal.I have build a new custom module of announcement i.e. a node type.
but while inserting the announcement I am getting following warning.

* warning: array_values() [function.array-values]: The argument should be an array in D:\wamp\www\drupal_kan\modules\announcement\announcement.module on line 486.

Please help me to solve this.

thanks in advance.

Comments

I heavily doubt anyone can

I heavily doubt anyone can solve this without access to your code.

P.S.
The preferred place to install third party modules is drupal_dir/sites/all/modules *not* drupal_dir/modules
--
Cheers,
Sivanandhan, P. (a.k.a. apsivam)

php error

Hi, you're looking at a PHP error, not a drupal one.

From your code it looks like on line 486 of announcement.module, there is a call to the array_values() function.
Whatever variable you're passing into the function is not an array.

--
AchieveInternet
http://www.achieveinternet.com