Cacti (home)ForumsDocumentation

This is an old revision of the document!


  • change function calls from api_plugin_* to plugin_*
  • internationalize all texts shown to the user: use
    __("text")

    ; create <plugin>.po file

  • internationalize date/time
  • pay attention to $menu indexes, often set in <plugin>_config_arrays; e.g. $menu[“Utilities”] now goes $menu[“utilities”][“items”]
  • after registering a new realm, often set in <plugin>_config_arrays call function plugin_load_realms() to load realms into global variable
  • $config has gone, replace e.g.
    • $config[“base_path”] by CACTI_BASE_PATH
    • $config[“rra_path”] by CACTI_RRA_PATH
    • $config[“url_path”] by CACTI_URL_PATH
    • $config[“library_path”] by CACTI_BASE_PATH . ”/lib”
    • $config[“include_path”] by CACTI_BASE_PATH . ”/include”
  • table handling has changed, consider using the new table class!
    • html_start_box($title, $width, $cell_padding, $align, $add_text = ””, $collapsing = false, $table_id = ””)
      old 3rd parameter $colors has gone
    • html_header_sort_checkbox expects $display_text in new format:
	array(
		"name" => array(
			"name" => __("CDEF Title"),
			"order" => "ASC",
			"filter" => true,
			"link" => true
		),
		"id" => array(
			"name" => __("ID"),
			"align" => "right",
			"order" => "ASC"
		)
	);





Personal Tools