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;
}
Comments
Comment #1
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.