Index: branches/5.1.x/core/units/config_search/config_search_config.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/config_search/config_search_config.php (.../config_search_config.php) (revision 12127) +++ branches/5.1.x/core/units/config_search/config_search_config.php (.../config_search_config.php) (revision 12657) @@ -1,6 +1,6 @@ 'confs', - + 'Clones' => Array( 'confs-cf' => Array( 'Prefix' => 'confs-cf', @@ -23,7 +25,7 @@ 'ForeignKey' => 'CustomFieldId', // linked field in subtable 'AutoClone' => false, // because OnCreateCustomField hook does the stuff 'AutoDelete' => true, - + 'Hooks' => Array( Array( 'Mode' => hAFTER, @@ -38,7 +40,7 @@ ), ), ), - + 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), 'EventHandlerClass' => Array('class'=>'ConfigSearchEventHandler','file'=>'config_search_event_handler.php','build_event'=>'OnBuild'), @@ -50,35 +52,35 @@ 2 => 'page', 3 => 'event', ), - + 'IDField' => 'SearchConfigId', 'TitleField' => 'FieldName', - + 'TitlePresets' => Array( 'default' => Array( 'new_status_labels' => Array('confs'=>'!la_title_Adding_ConfigSearch!'), 'edit_status_labels' => Array('confs'=>'!la_title_Editing_ConfigSearch!'), 'new_titlefield' => Array('confs'=>'!la_title_New_ConfigSearch!'), ), - + 'configsearch_edit' => Array('prefixes' => Array('confs'), 'format' => "#confs_status# '#confs_titlefield#' - !la_title_General!"), 'config_list_search' => Array('prefixes' => Array('confs_List'), 'tag_params' => Array('confs' => Array('per_page' => -1) ), 'format' => "!la_updating_config!"), ), - + 'TableName' => TABLE_PREFIX.'SearchConfig', 'CalculatedFields' => Array( '' => Array( 'IsCustom' => 'IF(CustomFieldId IS NULL, 0, 1)', ), ), - + 'ListSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'), - + 'ItemSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'), - - - + + + 'Fields' => Array( 'TableName' => Array('type' => 'string','not_null' => '1', 'required' => 1, 'default' => ''), 'FieldName' => Array('type' => 'string','not_null' => '1', 'required' => 1, 'default' => ''), @@ -104,24 +106,22 @@ 'VirtualFields' => Array( 'IsCustom' => Array('type' => 'int', 'default' => 0), ), - - 'ListSortings' => Array( + + 'ListSortings' => Array( '' => Array( 'ForcedSorting' => Array('IsCustom' => 'asc'), 'Sorting' => Array('DisplayOrder' => 'asc'), ) ), - + 'Grids' => Array( 'Default' => Array( - 'Icons' => Array('default'=>'icon16_custom.gif'), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used + 'Icons' => Array('default' => 'icon16_item.png'), // icons for each StatusField values, if no matches or no statusfield selected, then "default" icon is used 'Fields' => Array( 'TableName' => Array( 'title'=>'la_col_TableName', 'data_block' => 'grid_data_td'), 'FieldName' => Array( 'title'=>'la_col_FieldName', 'data_block' => 'grid_data_td' ), 'SimpleSearch' => Array( 'title'=>'la_col_SimpleSearch', 'data_block' => 'grid_data_td'), ), ), ), - ); - -?> \ No newline at end of file + ); \ No newline at end of file