Created
April 28, 2014 21:19
-
-
Save jessehs/11384363 to your computer and use it in GitHub Desktop.
Create a fieldable_panels_pane entity in an update hook. (I have not yet tested whether this works.)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fpp = fieldable_panels_panes_create(array('bundle' => 'freeform')); | |
$fpp->admin_title = "Placeholder FPP"; | |
$fpp->category = "Home page blocks"; | |
$fpp->title = "Placeholder FPP"; | |
$fpp->link = 0; | |
$fpp->field_freeform_html[und][0][value] = '<p>Placeholder</p>'; | |
$fpp->field_freeform_html[und][0][format] = "full_html"; | |
$fpp->description = "Placeholder FPP"; | |
$fpp->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment