960 Robots and Filefield-Insert Module 1.x-dev

hrpr.com - September 9, 2009 - 13:15
Project:960 Robots
Version:6.x-2.1
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Issue tags:960 Robots, filefield-insert
Description

In order to get the filefiield-insert module working with Lullabot's 960 Robots theme, I had to remove some code from the theme.php file. I do not know what the root cause of the problem is. I tested filefield-insert with a number of other themes and it worked as advertised. The code I removed is shown below:

function ninesixtyrobots_theme() {
return array(
    // Add our own function to override the default node form for story.
    'story_node_form' => array(
      'arguments' => array('form' => NULL),
    ),
  );
}

/**
* Custom function to pull the Published check box out and make it obvious.
*/
function ninesixtyrobots_story_node_form($form) {
  $published = drupal_render($form['options']['status']);
  $buttons = drupal_render($form['buttons']);
  // Make sure we also render the rest of the form, not just our custom stuff.
  $everything_else = drupal_render($form);
  return $everything_else . $published . $buttons; 
}

 
 

Drupal is a registered trademark of Dries Buytaert.