menu_add("news aggregation","admin.php?mod=import","Content syndication through RDF/RSS feeds.",NULL,NULL,3);
menu_add("add new feed","admin.php?mod=import&op=add&type=feed","Add new news feed.",NULL,"news aggregation",2);
menu_add("add new bundle","admin.php?mod=import&op=add&type=bundle","Create a new bundle.",NULL,"news aggregation",3);
menu_add("tag news items","admin.php?mod=import&op=tag","Assign bundle attributes to a news item.",NULL,"news aggregation",4);
menu_add("help","admin.php?mod=import&op=help","More information about news aggregation.",NULL,"news aggregation",5);
}
return$links?$links:array();
}
...
...
@@ -294,7 +299,7 @@ function import_save_item($edit) {
functionimport_form_bundle($edit=array()){
$form.=form_textfield("Title","title",$edit["title"],50,64,"The name of the bundle.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-seperated list of keywords describing the bundle.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-separated list of keywords describing the bundle.");
$form.=form_submit("Submit");
...
...
@@ -330,7 +335,7 @@ function import_form_feed($edit = array()) {
$form.=form_textfield("Title","title",$edit["title"],50,64,"The name of the feed; typically the name of the website you syndicate content from.");
$form.=form_textfield("Url","url",$edit["url"],50,128,"The fully-qualified URL of the feed.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-seperated list of keywords describing the feed.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-separated list of keywords describing the feed.");
$form.=form_select("Update interval","refresh",$edit["refresh"],$period,"The refresh interval indicating how often you want to update this feed. Requires crontab.");
$form.=form_submit("Submit");
...
...
@@ -398,65 +403,6 @@ function import_view() {
return$output;
}
functionimport_fd_form(){
$form.=form_textfield("Feed directory file","url","http://",64,128,"The fully-qualified URL of the feed directory file.");
menu_add("news aggregation","admin.php?mod=import","Content syndication through RDF/RSS feeds.",NULL,NULL,3);
menu_add("add new feed","admin.php?mod=import&op=add&type=feed","Add new news feed.",NULL,"news aggregation",2);
menu_add("add new bundle","admin.php?mod=import&op=add&type=bundle","Create a new bundle.",NULL,"news aggregation",3);
menu_add("tag news items","admin.php?mod=import&op=tag","Assign bundle attributes to a news item.",NULL,"news aggregation",4);
menu_add("help","admin.php?mod=import&op=help","More information about news aggregation.",NULL,"news aggregation",5);
}
return$links?$links:array();
}
...
...
@@ -294,7 +299,7 @@ function import_save_item($edit) {
functionimport_form_bundle($edit=array()){
$form.=form_textfield("Title","title",$edit["title"],50,64,"The name of the bundle.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-seperated list of keywords describing the bundle.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-separated list of keywords describing the bundle.");
$form.=form_submit("Submit");
...
...
@@ -330,7 +335,7 @@ function import_form_feed($edit = array()) {
$form.=form_textfield("Title","title",$edit["title"],50,64,"The name of the feed; typically the name of the website you syndicate content from.");
$form.=form_textfield("Url","url",$edit["url"],50,128,"The fully-qualified URL of the feed.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-seperated list of keywords describing the feed.");
$form.=form_textfield("Attributes","attributes",$edit["attributes"],50,128,"A comma-separated list of keywords describing the feed.");
$form.=form_select("Update interval","refresh",$edit["refresh"],$period,"The refresh interval indicating how often you want to update this feed. Requires crontab.");
$form.=form_submit("Submit");
...
...
@@ -398,65 +403,6 @@ function import_view() {
return$output;
}
functionimport_fd_form(){
$form.=form_textfield("Feed directory file","url","http://",64,128,"The fully-qualified URL of the feed directory file.");
$help["block"]="Blocks are the boxes visible in the side bars on the left- and right-hand side of the website. They are either exported by the Drupal or by any of the active modules. Adminstrators can enable or disable block, as well control the block placement by assigning them a region and/or by assigning each block (within a region) a weight to sort them vertically. The path setting lets you define which pages you want the specific blocks to be shown.";
$help["block"]="Blocks are the boxes visible in the side bars on the left- and right-hand side of the website. They are either exported by the Drupal or by any of the active modules. Adminstrators can enable or disable block, as well control the block placement by assigning them a region and/or by assigning each block (within a region) a weight to sort them vertically. The path setting lets you define which pages you want the specific blocks to be shown.";
$links[]=lm(t("edit this page"),array("mod"=>"node","op"=>"edit","id"=>$node->nid),"",array("title"=>t("Suggest an update for this book page.")));
$links[]=lm(t("printer-friendly version"),array("mod"=>"book","op"=>"print","id"=>$node->nid),"",array("title"=>t("Show a printer-friendly version of this book page and its sub-pages.")));
$help["book"]="The collaborative book offers a mean to organize content, authored by many users, in an online manual, outline or FAQ.";
$help["orphan"]="As pages in a book are edited, reorganized and removed, child pages might be left behind. We refer to such pages as 'orphan pages'. On this page, administrators can review their books for orphans and reaffiliate those pages as desired.";