Admin not able to edit any content

Deal All,

I am working on Drupal 7 version and after login as administrator, I am not able to edit or delete any content. If I click on edit or delete content it is showing me content page with comment box.

How can I solve this problem?
Thanks in advance

How to remove "Log in to post comments" in an article

Hi all

How to remove "Log in to post comments" in an article?

Please advise

Collapsing Menus

I have created a few menu items with submenu items. The submenu items link to, for example, a list of forums as provided by the Advanced Forum module. Another sub menu links directly to the node/add/article node. When either of these sub-menu items are selected, the pages load OK, but the menu collpases back to the parent item. I want to keep the menu expanded to include the link just selected.

Bootstrap in mutlisite environment ?

Hi guys,

Like already said in the title, I'm trying to bootstrap a Drupal site installed in a multisite environment. What is the proper way to do so ?

hook_field_widget_form adding empty element

Hi!
I've got a problem. hook_field_widget_form adding an empty element when I editing my node.

http://i.imgur.com/PNXJX.jpg

It's getting problematic when I make my fields required and send form without filled last element ( for example I edited only body of node ). Where can I (or how can I ) "disable" this feature? I want only add empty element when I click "Dodaj kolejną wartość" (Add another value).

<?php
function main_page_block_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
$base = $element;
if ($instance['widget']['type'] === 'main_page_block_textboxes') {

$element['title'] = array('#title' => t('Title'), '#type' => 'textfield', '#default_value' => isset($items[$delta]['title']) ? $items[$delta]['title'] : '', '#maxlength' => 255, '#required' => FALSE, '#delta' => $delta, ) + $base;

$element['description'] = array('#title' => t('Description'), '#type' => 'textarea', '#default_value' => isset($items[$delta]['description']) ? $items[$delta]['description'] : '', '#delta' => $delta, '#required' => FALSE, '#rows' => @$field['settings']['description_rows'], ) + $base;

After file_transfer() inside form submit no code is executed

function my_form_submit($form, $form_state) {

    $headers = array(...);
    $path_to_file = "/bla/bla/blabla";
    file_transfer($path_to_file, $headers);
    
     //Any code here won't be executed
     //I guess it's due to drupal_exit() inside file_transfer()
     //Help someone?

}

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x