node form

Fix for Trying to put a node form in a ctools modal

  1. move module_load_include('inc', 'node', 'node.pages');
  2.  
  3. from somemodule_node_form
  4.  
  5. to somemodule_node_add_page
  6.  
  7. because during submitting, it need to load the node.pages.inc

Fix for Fix for Trying to put a node form in a ctools modal

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function somemodule_menu() {
  5.   $items = array();
  6.   $items['initial-page'] = array(
  7.     'title' => t('My title'),
  8.     'page callback' => 'somemodule_ini

put a node form in a ctools modal (fixed)

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function somemodule_menu() {
  5.   $items = array();
  6.   $items['initial-page'] = array(
  7.     'title' => t('My title'),
  8.     'page callback' => 'somemodule_ini

Fix for Trying to put a node form in a ctools modal

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function somemodule_menu() {
  5.   $items = array();
  6.   $items['initial-page'] = array(
  7.     'title' => t('My title'),
  8.     'page callback' => 'somemodule_ini

Fix for Fix for Trying to put a node form in a ctools modal

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function somemodule_menu() {
  5.   $items = array();
  6.   $items['initial-page'] = array(
  7.     'title' => t('My title'),
  8.     'page callback' => 'somemodule_ini

Fix for Trying to put a node form in a ctools modal

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function somemodule_menu() {
  5.   $items = array();
  6.   $items['initial-page'] = array(
  7.     'title' => t('My title'),
  8.     'page callback' => 'somemodule_ini

Trying to put a node form in a ctools modal

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function somemodule_menu() {
  5.   $items = array();
  6.   $items['initial-page'] = array(
  7.     'title' => t('My title'),
  8.     'page callback' => 'somemodule_ini

Fix for Remove 'Vocabularies' fieldset

  1. /**
  2.  * Implementation of hook_form_alter().
  3.  */
  4. function mymodule_form_alter(&$form, &$form_state, $form_id) {
  5.   if ($form_id == 'mobileapp_node_form') {
  6.     // Remove 'Vocabularies' fieldset.
  7.  

Fix for Remove 'Vocabularies' fieldset

  1. /**
  2.  * Implementation of hook_form_alter().
  3.  */
  4. function mymodule_form_alter(&$form, &$form_state, $form_id) {
  5.   if ($form_id == 'edit-title') {
  6.     // Remove 'Vocabularies' fieldset.
  7.     $form[

How to clone a CCK-heavy node form

  1. function myzipmodule_form_massupload(&$form_state = array()) {
  2.   $content_type = 'picture';
  3.   $form_id = $content_type .
Syndicate content