[development] delete menu not appearing
Lluís
enboig at gmail.com
Thu Aug 21 11:28:19 UTC 2008
I forgot to say I added some "extra menu" to make me easy to customize
the menus like:
........
$items[] = array('path' => 'comptacau/projectes/'. arg(2) .'/delete',
'title' => t('Delete'),
'callback' => 'drupal_get_form',
'callback arguments' =>
array('node_delete_confirm', $node),
'access' => node_access('delete', $node),
'weight' => 1,
'type' => MENU_LOCAL_TASK);
........
I checked for a concrete "projecte" node type, and going though
'comptacau/projectes/_nid_' (my menu) shows "delete" option, but not
through 'node/_nid_'
Can this affect menu system in any way? Some node types have this
custom menus, and some not; but all of the have delete option hidden.
On Thu, Aug 21, 2008 at 1:23 PM, Lluís <enboig at gmail.com> wrote:
> I have programed my own premission system; but it shouldn't be the
> issue here, when de user goes to 'node/2175'
> appear 'view' and 'edit' not 'delete', but user can go manually to
> 'node/2175/delete' and delete the node with no problems.
>
>
> On Thu, Aug 21, 2008 at 1:10 PM, Victor Kane <victorkane at gmail.com> wrote:
>> Sometimes the permissions get very complicated in terms of filters,
>> ownership, edit own, edit, etc.
>>
>> One thing I sometimes do is make a backup of the database, then give
>> the non-admin user all node, filter, etc. permissions, and then start
>> taking off these permissions one by one to see what's going on.
>>
>> Another source of problems is if you have been using any kind of
>> access module which you have then disabled, then you will want to go
>> to Administer > Content management > Post settings and hit the rebuild
>> permissions button.
>>
>> Victor Kane
>> http://awebfactory.com.ar
>>
>> On Thu, Aug 21, 2008 at 8:05 AM, Lluís <enboig at gmail.com> wrote:
>>> I am using drupal 5; I just updated the core to be sure I didn't
>>> change anything there, but the problem continues. It afect other
>>> node-types also. As I can delete nodes using the administrative
>>> interface, may it be a menu problem?
>>>
>>> On Thu, Aug 21, 2008 at 1:00 PM, Victor Kane <victorkane at gmail.com> wrote:
>>>> If you are using Drupal 6, then there are now separate permissions for
>>>> creating, editing and deleting... check your permissions if this is
>>>> the case
>>>>
>>>> On Thu, Aug 21, 2008 at 7:16 AM, Lluís <enboig at gmail.com> wrote:
>>>>> I have developed several node types for an application, and in one of
>>>>> them "delete" menu doesn't appear when viewing it; first I thought it
>>>>> could be a permission problem, so I wrote:
>>>>> function hook_access($op, $node) {
>>>>> return true; //debug
>>>>> ...
>>>>> }
>>>>>
>>>>> but nothing happend; then I tried with user 1 and it is the same (I
>>>>> cleared all cache tables using phpmyadmin).
>>>>> besides hook_delete and hook_access is there anything else necessary
>>>>> for the menu to appear? From the administrative interface I can delete
>>>>> the node without problems.
>>>>>
>>>>> thanks
>>>>>
>>>>> --
>>>>> *La vida és com una moneda, la pots gastar en el que vulguis però
>>>>> només una vegada.
>>>>> *La felicitat ha de ser compatible, compartible i cooperativa.
>>>>> *Envellim quan els records superen les il·lusions.
>>>>> *Als llocs desconeguts només s'hi arriba per camins desconeguts.
>>>>> *Abans d'imprimir aquest missatge, pensa en el medi ambient.
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> *La vida és com una moneda, la pots gastar en el que vulguis però
>>> només una vegada.
>>> *La felicitat ha de ser compatible, compartible i cooperativa.
>>> *Envellim quan els records superen les il·lusions.
>>> *Als llocs desconeguts només s'hi arriba per camins desconeguts.
>>> *Abans d'imprimir aquest missatge, pensa en el medi ambient.
>>>
>>
>
>
>
> --
> *La vida és com una moneda, la pots gastar en el que vulguis però
> només una vegada.
> *La felicitat ha de ser compatible, compartible i cooperativa.
> *Envellim quan els records superen les il·lusions.
> *Als llocs desconeguts només s'hi arriba per camins desconeguts.
> *Abans d'imprimir aquest missatge, pensa en el medi ambient.
>
--
*La vida és com una moneda, la pots gastar en el que vulguis però
només una vegada.
*La felicitat ha de ser compatible, compartible i cooperativa.
*Envellim quan els records superen les il·lusions.
*Als llocs desconeguts només s'hi arriba per camins desconeguts.
*Abans d'imprimir aquest missatge, pensa en el medi ambient.
More information about the development
mailing list