You are here

public function FeedsDateTime::removeGranularity in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsParser.inc \FeedsDateTime::removeGranularity()
  2. 7.2 plugins/FeedsParser.inc \FeedsDateTime::removeGranularity()

Removes a granularity entry from the array.

File

plugins/FeedsParser.inc, line 560

Class

FeedsDateTime
Extend PHP DateTime class with granularity handling, merge functionality and slightly more flexible initialization parameters.

Code

public function removeGranularity($g) {
  if ($key = array_search($g, $this->granularity)) {
    unset($this->granularity[$key]);
  }
}