|  | @@ -10,27 +10,29 @@
 | 
											
												
													
														|  |   * @ingroup tripal
 |  |   * @ingroup tripal
 | 
											
												
													
														|  |   */
 |  |   */
 | 
											
												
													
														|  |  function tripal_install() {
 |  |  function tripal_install() {
 | 
											
												
													
														|  | 
 |  | +  tripal_add_variables();
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +/**
 | 
											
												
													
														|  | 
 |  | + * Adds variables for bundles.
 | 
											
												
													
														|  | 
 |  | + */
 | 
											
												
													
														|  | 
 |  | +function tripal_add_variables() {
 | 
											
												
													
														|  |    // Add tripal bundle variables needed for storing additional settings for
 |  |    // Add tripal bundle variables needed for storing additional settings for
 | 
											
												
													
														|  |    // Tripal Bundles.
 |  |    // Tripal Bundles.
 | 
											
												
													
														|  |    tripal_insert_variable(
 |  |    tripal_insert_variable(
 | 
											
												
													
														|  | -    'title_format',
 |  | 
 | 
											
												
													
														|  | -    'A pattern including tokens that can be used to generate tripal entity titles.'
 |  | 
 | 
											
												
													
														|  | 
 |  | +      'title_format',
 | 
											
												
													
														|  | 
 |  | +      'A pattern including tokens that can be used to generate tripal entity titles.'
 | 
											
												
													
														|  |    );
 |  |    );
 | 
											
												
													
														|  |    tripal_insert_variable(
 |  |    tripal_insert_variable(
 | 
											
												
													
														|  | -    'url_format',
 |  | 
 | 
											
												
													
														|  | -    'A pattern including tokens that can be used to generate tripal entity url aliases.'
 |  | 
 | 
											
												
													
														|  | 
 |  | +      'url_format',
 | 
											
												
													
														|  | 
 |  | +      'A pattern including tokens that can be used to generate tripal entity url aliases.'
 | 
											
												
													
														|  |    );
 |  |    );
 | 
											
												
													
														|  |    tripal_insert_variable(
 |  |    tripal_insert_variable(
 | 
											
												
													
														|  | -    'description',
 |  | 
 | 
											
												
													
														|  | -    'The description of a Tripal Entity type/bundle.'
 |  | 
 | 
											
												
													
														|  | 
 |  | +      'description',
 | 
											
												
													
														|  | 
 |  | +      'The description of a Tripal Entity type/bundle.'
 | 
											
												
													
														|  |    );
 |  |    );
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  /**
 |  |  /**
 | 
											
												
													
														|  |   *
 |  |   *
 | 
											
												
													
														|  |   */
 |  |   */
 | 
											
										
											
												
													
														|  | @@ -113,6 +115,8 @@ function tripal_enable() {
 | 
											
												
													
														|  |      db_query($sql);
 |  |      db_query($sql);
 | 
											
												
													
														|  |      $sql = "ALTER INDEX tripal_variables_tripal_variables_c1_key2 RENAME TO tripal_variables_tripal_variables_c1_key";
 |  |      $sql = "ALTER INDEX tripal_variables_tripal_variables_c1_key2 RENAME TO tripal_variables_tripal_variables_c1_key";
 | 
											
												
													
														|  |      db_query($sql);
 |  |      db_query($sql);
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    tripal_add_variables();
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 |